lyncas / DiscoArchive

FIRST Robotics Competition Code Archive for the 2011 to 2014 Games
7 stars 5 forks source link

Improve gyro navigation #16

Closed xmaams closed 10 years ago

xmaams commented 11 years ago

We need:

  1. Driving commands should run in a thread so they don't have to use immediate return. This allows the regulator to correct the encoder turns with gyros. OR think about how to make the command non blocking without immediate return.
  2. Update heading using gyro at the end of moves (this is how it works in the master branch). The problem is that many moves are happening for some reason, so this update at move end gets stuff messed up. We want to figure out some way to do this so that headings and positions are actually accurate. Right now all the jitter in the gyro gets accumulated onto the heading instead of being cleaned up at the end like this would do.
xmaams commented 11 years ago

This is the current state of gyro navigation. http://youtu.be/tzcnyp14dpg It's not as bad as encoders, but could definitely be improved.

lyncas commented 11 years ago

interesting ... let's save all these videos and show them at the demo