|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
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. Last edited by ay2b : 16-01-2008 at 11:36. Reason: typo |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Re: Ever use a helicopter heading hold gyro before?
Quote:
|
|
#6
|
|||||
|
|||||
|
Re: Ever use a helicopter heading hold gyro before?
Quote:
|
|
#7
|
|||||
|
|||||
|
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. |
|
#8
|
||||
|
||||
|
Re: Ever use a helicopter heading hold gyro before?
If the frequency is all that is needed you can use an frequency to voltage converter. Then all you would need to do is read the value off an ADC.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gyro Heading always zero, yet operating? | marccenter | Programming | 3 | 16-01-2008 10:54 |
| Reading gyro before Autonomous mode | Doug Leppard | Programming | 9 | 06-01-2008 21:02 |
| Has this ever happened before? | BBnum3 | General Forum | 22 | 17-04-2007 11:39 |
| Keeping a certain heading using a gyro | DanDon | Programming | 12 | 08-03-2006 14:27 |
| Ever seen this serial port problem before??? | Aidan F. Browne | Programming | 5 | 05-02-2003 12:03 |