|
EasyC Timer and Gyro questions
I can't seem to figure out the answer for two things.
1. EasyC gyro code seems to work well, giving the correct heading when the robot is turned. However we would like to use the actual yaw rate...how can we access this data?
2. We tried to calculate yaw rate ourselves using one of the EasyC timers, however the timer doesn't seem to change. We start it in the Initialize block but subsequent calls return 0, thus we still can't get yaw rate.
We would rather just get yaw rate from the gyro but EasyC doesn't seem to allow this. The reason we want it is so we can use the yaw rate to control our drive better, so that straight stays straight and turns are constant. So if anyone has any ideas on how to do this, we would appreciate the advice!
|