So, when I try to print a variable using the command:
Code: Select all
println('rev: ' ..getChannel("rev"))
If I change the rate to 25Hz then I get sporadic nils
When I change to 10Hz (or lower) then I get the constant error:rev: 0.0
[lua] Script error: [string "batt_u_warn = 11..."]:59.0: attempt to concatenate a nil value
rev: 0.0
rev: 0.0
rev: 0.0
rev: 0.0
[lua] Script error: [string "batt_u_warn = 11..."]:59.0: attempt to concatenate a nil value
rev: 0.0
rev: 0.0
rev: 0.0
rev: 0.0
[lua] Script error: [string "batt_u_warn = 11..."]:59.0: attempt to concatenate a nil value
TickRate doesn't seem to influence the behavior. I tried with TickRate of 1, thinking maybe it has to be equal to the refresh rate of the lowest CAN signal rate, which was 1Hz (temperatures don't change that quickly....) but that didn't seem to make a difference.[lua] Script error: [string "batt_u_warn = 11..."]:59.0: attempt to concatenate a nil value
[lua] Failure: Runtime Error
Temporary workaround for my display issue is to set the CAN signal rate to 50Hz for all variables used in the Lua script.