Quote:
|
Originally Posted by Kevin Watson
As the FIRST folks haven't sent our demobot back for us to test updates on, I'll post the changes (hopefully) sometime this weekend when my team has their 'bot moving around. If you want to make the changes yourself, only two things need to be done to get robot.c to work with the new gyro code:
1) Because I now return angular units expressed in milliradians instead of degrees, line 198 needs to be changed from:
heading = Gyro_Angle()*PI_MRAD/180L;
to:
heading = Get_Gyro_Angle();
2) The programming interface was expanded and many functions were renamed. To fix this, I would just drop the new version of gyro.c/.h into your build directory and let the compiler find the deltas for you (there will only be a few).
-Kevin
|
Great! Thank you for your help. I will let you know if we get it to work this weekend.
:-)
Gary