|
Feedback loop on angular rate
Posted by Joe Johnson at 1/24/2001 6:36 PM EST
Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems.
In Reply to: Gyrochip for Straight Steering, any tips?
Posted by Elliot Johnson on 1/24/2001 5:54 PM EST:
The Gyro Chip is WONDERFUL for this purpose.
Basically you need to form a feedback loop based on angular rate.
With single joystick control use X for "desired rate of spin" and use Y for base throttle.
Calculate a "spin error" which is basically desired rate of spin minus the actual rate of spin (from the gyro of course)
Right Throttle becomes
Base Throttle + Constant * Spin Error
Left Throttle becomes
Base Throttle - Constant * Spin Error
There is a LOT of details to work out to make PBASIC do what you want it to do, but that is all you really need.
Adjust the Constant to make your robot drive like it was an Formula 1 car.
Joe J.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|