I have a programming question that I have been struggling with for a while and have not solved; I thought someone on the forum might have an answer:
I want to write a very short function that I can tack onto the end of a lib function to use the timer_start function to increment a variable, say AirSpeed by a value I set, but not 1. It works perfectly for 1 but nothing I try allows me to add, say 3.2 consecutively. Here's what I mean:
Code: Select all
function Setup(AS)
--
ASCB(AS)
--
end
--
AS = 1
MyASTimer = timer_start(300, 300, Setup)
Any (reasonable) suggestions would be most appreciated!
Sparky