Page 1 of 1

Lua script task time/calculation raster?

Posted: Tue Apr 08, 2014 1:07 am
by GTIspirit
What is the Lua script task time, aka calculation raster?

Or does it not work that way?

Just trying to get some ideas how to make variable blinky shift lights as mentioned in this post:
http://www.autosportlabs.org/viewtopic.php?t=4078

Maybe the concept would be to use the setPwmPeriod( channel, period ) to define a fixed blink time period/frequency, and then use the setPwmDutyCycle( channel, dutyCyclePct ) with the dutyCyclePct varying by simple calculation according to the difference to the threshold.