View Single Post
  #9   Spotlight this post!  
Unread 08-03-2006, 10:11
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Keeping a certain heading using a gyro

Here's the thing: Either you need to detect when your driver is trying to go straight, and use the gyro then, or modify the drive code so it changes the angle that the gyro want's to be.. Unless you just want some sort of position holding code.

Either way, download the package of files for the gyro, take a look at how its used in user_routines.c, there's a bit more you need to do then just Reset_Gyro_Angle()