Search found 6 matches

by TBracing427
Wed Jul 10, 2019 11:44 am
Forum: Lua Scripting
Topic: Injector PWM signal to Fuel Consumption
Replies: 6
Views: 6924

Hello brentp and TBracing247. When we went out to test this I discovered just wiring this into the car caused it to not run right. I had patched into injector 1's wiring and this caused injector 2 to stop working. I'm not sure why this would happen. My best guess is that the internal resistance of ...
by TBracing427
Wed Jul 10, 2019 11:35 am
Forum: Lua Scripting
Topic: Need Help - Using Channels from AIM SmartyCam CAN
Replies: 8
Views: 7915

[Solved] Need Help - Using Channels from AIM SmartyCam CAN

Problem solved - lightningrod had it right, the code was stuck in an infinite loop checking/mapping the CAN channels. I still needed to use the "old" mapping approach from Autosports wiki page. It was actually simpler to fix then I would have imagine, I just to change one word on one line,...
by TBracing427
Fri Jun 21, 2019 3:45 am
Forum: Lua Scripting
Topic: Need Help - Using Channels from AIM SmartyCam CAN
Replies: 8
Views: 7915

I did try that at first, maybe I was doing something wrong, but I couldn't get the getChannel() function to work then. I tried putting in the channel ID like getChannel(1056) but that didn't work, nor did putting a reference value like getChannel(1) work, nor did using the channel name like getChann...
by TBracing427
Fri Jun 21, 2019 3:20 am
Forum: Lua Scripting
Topic: Injector PWM signal to Fuel Consumption
Replies: 6
Views: 6924

That's cool that you are trying to calculate fuel from the Injector PWM. In fact I'm trying to do the same thing for my 1986 Mercedes 190E. You should let us know how your testing goes. The code you posted seems like it might work, you have almost the same approach I have in my code. The main thing ...
by TBracing427
Fri Jun 21, 2019 2:48 am
Forum: Lua Scripting
Topic: Need Help - Using Channels from AIM SmartyCam CAN
Replies: 8
Views: 7915

Hmmm, that is a good point, it might be caught up in a loop driven by the CAN feed. I don't have the car near me right now, so I can't try your suggestion yet but I'll post feedback when I get a chance to try it. So moving forward, lets say your suggestion is correct, what do I need to do to get it ...
by TBracing427
Tue Jun 11, 2019 4:29 am
Forum: Lua Scripting
Topic: Need Help - Using Channels from AIM SmartyCam CAN
Replies: 8
Views: 7915

Need Help - Using Channels from AIM SmartyCam CAN

Hello everyone, New guy to RaceCapture and writing in Lua Script. My ChampCar team and I recently bought the Podium Connect with one of our goals to be able to calculate fuel consumption for our next race in July. After many hours I'm slowly figuring out the nuances of how to code in Lua, but I stil...