Quote:
|
Originally Posted by about_abot
In one of your previous posts, you stated you were working on a new robot.c (and I hope a new robot.h). Do you have any idea when we would see that? Having that will help immensely since my role is to help and not perform the actual work instead of the student doing it himself.
|
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