![]() |
pic: Makeshift Kiwi Vex-FTC-FRC hybrid
|
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
When you say "It didn't work well", what specifically didn't work the way you intended?
BTW, talk about overkill with those speed controllers!! Here is a quick video I did of a Gyro Stabilized Vex Kiwi robot. So far, it works great. Next step......More speed!!! |
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
|
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
How I got the Vex Kiwi to transition between Gyro stabilization (Heading Lock) and open loop control is really simple. I just sampled the "Rotation" input from the joystick, and used a "window" to detect when rotation was being commanded. Any rotation input outside the window caused the gyro input to be ignored and allowed the rotation command to control the rotation of the robot. As soon as the rotation input entered the window again, the current gyro direction value was set to zero and then the gyro direction was used to control the rotation once again. One key to making this transition smooth is to set the "window" to closely match the range of the "Rotation" command deadband that doesn't quite make a change in the robot's rotation. IIRC, that range for the Vex was from >122 to <130. |
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
I actually saw your video with the vex and decided to wire it up with one of our Cortex's. The problem was that the gyro reading would constantly decrease like there was some kind of drift even though the robot wouldn't be rotating. I don't know why it was doing that, and I only had a class period (1hr 15m) to work on code and getting everything worked out. I could work on it some more and try to get it to work, but I'm much more fluent in LabVIEW than robotC so I'd rather try getting an FRC sized prototype working. |
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
As for your gyro drift. The initialization process may not be completing properly before the robot is moved. I added the red LED to mine to indicate when the initialization process has finished. This bot is coded in "C" using MPLab as the IDE. It's old school, but the principals are the same. |
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
|
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
Other approaches I thought about doing but in the end just went with the simple "hold this to lock heading" : - PID controller on gyro_rate - Settling time - Scrapping it and saying "back in my day we didn't have fancy gyros to hold our heading, we did it uphill, both ways, with drill motors" - Telling the mechanical folks we were never turning and all systems needed to be on a turret |
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
The problem with using both the command AND rate being at 0 is that you would rarely ever see a gyro rate of 0. Vibration, noise, and drift will all give a reading out of a gyro. All of these tend to average out around 0 if a good calibration is achieved, but it still rarely stops at 0. As Alan suggested, Quote:
Quote:
|
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
good work
![]() |
Re: pic: Makeshift Kiwi Vex-FTC-FRC hybrid
Quote:
|
| All times are GMT -5. The time now is 12:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi