Quote:
Originally posted by Sachiel7
I'm assuming you mean the counter variable. Upon initing the prog, it's set to 0. It counts up until it reaches the counter time limit for a specific function (the third array element)
MAX_FUNC is the total number of functions. You can modify the code by commenting out the reset routine so that it won't repeat.
Since this is in user_routines.c, it clocks every 17ms which means 58 cycles is about 1 second. The final array element is the number of cycles for the first two elements to be outputted to the motors.
ie: {127,130,60}
^ ^ ^
Left Out || Number of Cycles to output
Right out
If your'e talking about F_Count, that's just the function you want to start with. It's defined at the beginning as 0 usually, but you can have 2 different modes in one array by refining the F_Count's start value and the MAX_FUNCs value
I hope that answers your question.
|
Thats what I thought, Can u do a "reserve" counter like a go-sub like in P-basic? I figure that I better find these things out now before build.
Thanks,
-Greg The Great