Go to Post My own opinion is that any truly great student can succeed with any teacher, and any truly great teacher can succeed with any group of students. - DampRobot [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-05-2013, 05:40 PM
gyroscopeRaptor's Avatar
gyroscopeRaptor gyroscopeRaptor is offline
Registered ConfUser
AKA: Mark McGivern
FRC #3633 (Catalyst)
Team Role: College Student
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Albert Lea, MN / Troy, NY
Posts: 360
gyroscopeRaptor has a spectacular aura aboutgyroscopeRaptor has a spectacular aura about
Three gyros - is it possible?

We have tried to add a third gyro on a second analog panel, but it causes us to lose communication. If we were to add a third gyro, how should we do it?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-05-2013, 05:48 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Three gyros - is it possible?

The gyro class uses accumulators built into the FPGA. There are only two accumulators. It is throwing an exception, which is why you are losing communication.

You can use more then two gyros, but only two instances of the gyro class. You would have to do your own integration to use more then two gyros.

What are you using 3 gyros for?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-05-2013, 08:03 PM
gyroscopeRaptor's Avatar
gyroscopeRaptor gyroscopeRaptor is offline
Registered ConfUser
AKA: Mark McGivern
FRC #3633 (Catalyst)
Team Role: College Student
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Albert Lea, MN / Troy, NY
Posts: 360
gyroscopeRaptor has a spectacular aura aboutgyroscopeRaptor has a spectacular aura about
Re: Three gyros - is it possible?

We want to use a gyro to deliver pan/tilt angles. One for tilt, one on the base of the panning mount, and one on the robot. Two are needed for panning to subtract out actual movement from robot drive motion.

We're going to find an alternative to the pan using 2 gyros.

What is an accumulator?
Reply With Quote
  #4   Spotlight this post!  
Unread 02-05-2013, 10:51 PM
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Three gyros - is it possible?

Instead of a Gyro, which really isn't great for measuring an angle like you want to do, use either a potentiometer or a accelerometer. The accelerometer will simply measure the direction of gravity, which is straight down, and return the angle of your shooter. Search chief Delphi for how to use a potentiometer to measure angle, it is by far the least expensive and most accurate solution.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #5   Spotlight this post!  
Unread 02-06-2013, 04:21 PM
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Three gyros - is it possible?

If you're talking about pan/tilt of a camera mount, you might consider using servos to run it. With servos, you can tell it what angle to go to and it just does it for you. It has the feedback built in.

The gyro returns an analog value that is the rate of rotation. What robots usually need is the angle or heading. To change the rate of angle change to the angle, you need to integrate the rates over time coming from the gyro. Integration is another name for summing (or accumulating) the values. The accumulator is some hardware in the FPGA for summing the rate values and producing an angle. By using FPGA hardware, the program isn't burdened with rapidly reading the values and summing them.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
Reply


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 09:55 AM.

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