View unanswered posts | View active topics It is currently Thu Nov 20, 2014 11:39 pm






Reply to topic  [ 5 posts ] 
Getting angular rate from VEX Gyro 
Author Message
Rookie

Joined: Thu Jul 07, 2011 1:34 am
Posts: 5
Post Getting angular rate from VEX Gyro
The API that RobotC created returns an integrated angular rate as a positional angle. How do we get the raw angular rate? There are times when the positional angle is convenient but there are other times when the angular rate is needed.


Wed Nov 23, 2011 4:54 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Getting angular rate from VEX Gyro
I haven't worked with the raw sensor values first hand, but if you want the raw data from the sensor, you could configure it as a potentiometer or light sensor in the Motors and Sensors setup, instead of a Gyro.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Mon Nov 28, 2011 10:55 am
Profile
Rookie

Joined: Thu Jul 07, 2011 1:34 am
Posts: 5
Post Re: Getting angular rate from VEX Gyro
Yes. But if we do that then we loose the ability to get the nice calibrated absolute angle.


Mon Nov 28, 2011 2:41 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Getting angular rate from VEX Gyro
Is it not possible to manually and dynamically configure the sensor port during your program?

_________________
sudo rm -rf /


Mon Nov 28, 2011 4:29 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Getting angular rate from VEX Gyro
You could manually switch between it set as a potentiometer and gyro, but that could prove to be problematic. The gyro needs ~1.1 seconds to properly calibrate, so I'm not sure that you could rapidly switch back and forth.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Nov 29, 2011 1:51 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.