View Single Post
  #1   Spotlight this post!  
Unread 21-01-2005, 12:49
about_abot about_abot is offline
Registered User
AKA: Gary Dettmers
#1008 (LugNuts)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Columbus, Ohio
Posts: 4
about_abot is an unknown quantity at this point
Re: Example gyro code released.

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