![]() |
Ever use a helicopter heading hold gyro before?
RC helicopters use gyros to control the tail rotor. They sit between the receiver and the servo/esc for the tail and modify the control signal sent to the output. The input is the desired PWM value and the output is the modified PWM value. The gyro will attempt to hold the heli tail in a fixed position when the input is neutral, but will allow the tail to move when a non-neutral input is applied.
We used the ADXRSxxx gyros on the robot to integrate the heading, but I never thought of using one of these simple gyros to make the robot drive straight. For a holonomic platform you have three components to your drive commands: X, Y, and rotation (W). Take the W value and send to to one of the user-controlled PWM outputs connected to the gyro input. Connect the gyro output back to the RC and read the pulse width to determine the modified signal value. Use the modified value to drive the robot instead of the original W value. I have no idea whether it would work or how well, but I was curious whether anyone has done it. |
Re: Ever use a helicopter heading hold gyro before?
All sounds good, but you can't read in PWM with the controller. Have looked into it ourselves though.
|
Re: Ever use a helicopter heading hold gyro before?
Quote:
On the other hand, if you don't actually care what the value of the PWM signal is, you just want to "copy" it to an output PWM signal, you could just have an interrupt on the input PWM signal, and toggle your output pin. You would not need to use a timer at all. |
Re: Ever use a helicopter heading hold gyro before?
The only difference between a heading hold gyro and the regular gyro they give us in the kit is that in the Heading hold Gyro there is a separate chip (of which I know nothing about) that interprets the input from the driver/flyer.
I’m not sure if it would work with the FRC controller, but if it doesn’t than you can do the same thing with the kit gyro and some creative code. |
Re: Ever use a helicopter heading hold gyro before?
Quote:
|
Re: Ever use a helicopter heading hold gyro before?
Quote:
|
Re: Ever use a helicopter heading hold gyro before?
I've used them in battlebots before and they work amazingly.
But, to make them work within the rules of FIRST it requires more complex code than just using a gyro + Kevin's code. I was looking into it in 2005 when we last used a gyro. |
Re: Ever use a helicopter heading hold gyro before?
Quote:
|
| All times are GMT -5. The time now is 12:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi