Search found 12 matches

by notso2slo
Wed Oct 18, 2017 5:37 am
Forum: Lua Scripting
Topic: Unable to see virtual channels inside Race Capture?
Replies: 1
Views: 2797

For starters, you aren't running some of your functions: function onTick() updateFuelAvg(getAnalog(4)) -- pass the contents of Analog 4 (fuel) to the update fuel average routine) check_gear() -- call the function that determines what gear we are in -- begi...
by notso2slo
Wed Oct 11, 2017 4:35 am
Forum: Lua Scripting
Topic: ProTip - luasrcdiet to reduce compiled bytecode size
Replies: 5
Views: 4708

That is awesome! Especially since I keep running out of memory.

But as someone who is not a programmer.... How the heck do I actually run my script through that?? I don't even know where to start.
by notso2slo
Wed Oct 11, 2017 1:01 am
Forum: Lua Scripting
Topic: Going crazy over Gpio....
Replies: 4
Views: 3194

So I think the problem goes deeper....

I have a race capture MK1, and I plugged that in and loaded that code. I get a return of 1 instead of 0 now....
by notso2slo
Tue Oct 10, 2017 5:31 pm
Forum: Lua Scripting
Topic: Going crazy over Gpio....
Replies: 4
Views: 3194

I was attempting to eliminate excess steps, so instead of using logic to determine whether or not to set the Gpio to 0 or 1, I just go ahead and set it to 1.

It wasn't working with the logic, so I just set it as a constant.
by notso2slo
Tue Oct 10, 2017 3:40 am
Forum: Lua Scripting
Topic: Going crazy over Gpio....
Replies: 4
Views: 3194

Going crazy over Gpio....

So I have been trying to get my oil warning light working, and have been really struggling... No matter what I do, the Gpio seems to be in a state of 0. So I finally simplified my code down to this: function onTick() setGpio(0, 1) println("Oil Warn " ..getGpio(0)) end...
by notso2slo
Mon Oct 02, 2017 5:28 pm
Forum: Lua Scripting
Topic: Reset Predictive timer?
Replies: 1
Views: 2140

Reset Predictive timer?

Is there a way to reset the predictive lap timer with LUA scripting?? I am running an endurance team, and each driver wants to see their own predictive laps, not those of the driver before them.

Is this possible?
by notso2slo
Fri Sep 15, 2017 4:56 pm
Forum: Lua Scripting
Topic: Different onTick frequencies?
Replies: 6
Views: 3920

Awesome, thanks! I will stare at that for a while and try to comprehend... But when I was playing with my code more, I realized there might be a simpler way of reducing the data in my logger for things like max RPM... My main concern is reducing the data points in the logged data to keep reviewing s...
by notso2slo
Wed Sep 13, 2017 10:49 pm
Forum: Lua Scripting
Topic: Different onTick frequencies?
Replies: 6
Views: 3920

You're close. You can increment a global variable as a counter and use a % (modulo) operator to trigger a function at a lower rate than the main tick rate. give that technique a shot and see if that helps! Not a programmer here... Can you give me an example? Given examples, I can modify to suit my ...
by notso2slo
Wed Apr 26, 2017 3:43 pm
Forum: Lua Scripting
Topic: Different onTick frequencies?
Replies: 6
Views: 3920

Different onTick frequencies?

I have some functions that I want checked 10 times a second, so I use setTickRate(10) to get 10hz. However, other functions are fine at 1hz, and I dont want to have more data than I need. Is there a way for some functions to run at 10hz and others at 1hz? Here was my thought, the functions are defin...
by notso2slo
Thu Apr 06, 2017 7:13 pm
Forum: Telemetry
Topic: Telemetry options for no GSM coverage
Replies: 1
Views: 2216

Telemetry options for no GSM coverage

Hey all We are doing a race at the end of the month, and trying to figure out the best way to get everything connected. The track we are going to has some spotty coverage (The Ridge Motorsports Park) and even a roof mounted antenna has proven unreliable there. We have a RCP2, bluetooth module, Veriz...
by notso2slo
Fri Jan 08, 2016 6:41 pm
Forum: Sensors
Topic: Bosch Brake Pressure Sensor
Replies: 3
Views: 3197

Lol, a few. I work at a wrecking yard which specializes in higher end cars. I'd offer to sell them cheap, but I can't guarantee if they work, and don't really have time to deal with "warranties"
by notso2slo
Wed Jan 06, 2016 8:58 pm
Forum: Sensors
Topic: Bosch Brake Pressure Sensor
Replies: 3
Views: 3197

Bosch Brake Pressure Sensor

So I am attempting to use a Bosch brake pressure sensor from a BMW DSC system, Bosch part 0265005303
I can't seem to get any variation in output, has anyone successfully used this sensor? I can get them for free, and they are easy to install in my current setup.