|
Re: EasyC Timer and Gyro questions
Hmmm right after I posted my question I think I may have figured out the solution. We can access the gyro output directly with GetAnalogInput(1) which is, of course, the yaw rate, right? Have to wait til tomorrow to try it though. It just figures that after two hours of head scratching that it would be this easy (get it? EasyC!).
That just leaves me with the question of why the timer isn't timing?
In the Intialize block:
StartTimer(1)
In another function:
timer = GetTimer(1);
PrintToScreen ("Time is %ld\n", (long)timer);
I've tried various permutations of casting but get 0 almost every time. Sometimes, if I'm patient, it will go to 1. Any ideas? I should add all of this is taking place on the 2005 RC.
|