Go to Post A world where lawyers and police don't get much work -- there's a goal to work toward. - Richard Wallace [more]
Home
Go Back   Chief Delphi > FIRST > Robot Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Spotlight this post!  
Unread 14-06-2012, 18:58
jakemochas jakemochas is offline
Programmer
FRC #1717 (The D'Penguineers)
Team Role: Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 22
jakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud ofjakemochas has much to be proud of
Re: 2012 FRC Team 1717 Uncut

Quote:
Originally Posted by MICHAELABICK View Post
Yes magnetometer. But it lags, so you have to run it through a filter.
We did not use a magnetometer. We only used a gyro. Our implementation of field-centric swerve drive with a gyro can be seen below.

Quote:
Originally Posted by Jared341 View Post
What gyro do you use for field-relative control?
Quote:
Originally Posted by JamesTerm View Post
Does it matter where the gyro is placed on the robot?
We ended up using a SparkFun gyro (product# 9094), but we were not satisfied with performance of this gyro with the cRIO’s analog interface. It is important that you mount the gyro in a spot on the robot that has little vibration because it is very susceptible to noise. I would recommend mounting it to the frame of your robot.

Quote:
Originally Posted by JamesTerm View Post
Thanks for the heads up and this was an idea we considered for last year's game (especially since most of the time the robot was facing you), but given what is said here... I feel there is a missing piece to the puzzle... A gyro can give delta's of angular acceleration but what can ensure the robot's heading is calibrated? Is there some point of reference that can be sensed dynamically while rotating?
I'll be anxious to hear how/if they solved that problem.
Quote:
Originally Posted by JamesTerm View Post
I have to ask... what language are you using to program?

How did you solve the problem for potential drift? Is there something you calibrated against to keep it in line? How reliable can it keep its heading? Does it matter where the gyro is placed on the robot?
The gyro measures angular acceleration, which we use to determine the orientation of our robot. When the robot is booting up, it calibrates the sensor by measuring the analog voltage when the robot is motionless and establishes that as a baseline. We used the C++ Gyro class provided by WPILib to integrate the analog channel and show us our current angle. We know the orientation of the robot at the beginning of the match and zero it then.

Throughout the season, we tried a variety of 500 degree/second gyros that were attached to the analog port on the cRIO. In the end, though, we were not satisfied with any of the gyros. The gyros had significant drift, asymmetrical behavior, and were extremely sensitive to collisions on the field. In about 45 seconds, the gyro would drift by as much as 60 degrees and the advantages of the gyro would be lost.

In order to solve this problem, the drivers rezeroed the gyro every time they lined up for a shot at the fender or the key (the Reset() function). For all of our shots, the robot faced directly forward, which gave the perfect opportunity to rezero. Between each shot, the gyro was good enough to keep the robot oriented in the correct direction. Also, we trained our drivers in a no-gyro mode (robot-centric) in the event of a gyro failure. This training paid off. Even though we had gyro calibration failures in each regional event, the robot appeared like it was operating normally to the outside observer.

In the end, we were not satisfied with the performance of the gyro. One of our goals for next year is to find a better gyro solution for our swerve drive system.

Last edited by jakemochas : 14-06-2012 at 19:12.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi