|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#29
|
|||
|
|||
|
Re: Picking a gyro for field-centric swerve control
Quote:
The pseudo code might look like this: if(abs(fine)> sat_value) // check for saturation {rate = coarse + bias;} //use corrected coarse if saturated else { bias = bias + .01*(fine - coarse -bias); // compute the bias with an exponential filter tau = 100*dt rate = fine;// use fine gyro } angle = angle + rate*dt; //Integrate rate Quote:
Having done our simple analysis, the compass solution seems more cost effective since only one cheap sensor (http://www.chiefdelphi.com/forums/sh...d=1#post956268) can be used with no added regulators. Its accuracy is adequate for the field-centric task provided a location can be found on the robot that is free from strong magnetic disturbances. Maybe someone can chime in with some real life FRC testing experience. But it would be fun to fool with the dual gyro project. Last edited by vamfun : 21-04-2010 at 02:40. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: DS Swerve on the field | Racer26 | Extra Discussion | 15 | 09-04-2010 21:34 |
| Steering control without a gyro | nathanww | C/C++ | 4 | 27-01-2009 12:14 |
| Crab / Swerve drive joystick control scheme | Tom Line | Programming | 12 | 16-04-2007 18:47 |
| Swerve drive control system | dpick1055 | Programming | 8 | 22-01-2007 19:06 |
| Omni-wheels and driver-centric drive | efoote868 | Programming | 10 | 01-11-2006 22:22 |