Go to Post I know alot of the rookie teams were helped out alot this year. Do the same thing for the rookie Volunteers as well. - wilsonmw04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 08-01-2015, 00:13
Caitlinnnnn99's Avatar
Caitlinnnnn99 Caitlinnnnn99 is offline
Why does bag come so soon?
AKA: Caitlin T-HB
FRC #3250 (Kennedy Robotics)
Team Role: Mechanical
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Sacramento
Posts: 16
Caitlinnnnn99 will become famous soon enough
Help with Gyro

Hello, we are using the ADXRS453Z along with the roboRIO and the numbers (angle) we are getting back is just continuously increasing (into the negatives), we are using the new roboRio Labview example, and was wondering if anyone can help with making the gyro read the angle properly. That is, instead of reading and adding what seems to be the gyro rate, to read just what the gyro's real angle is.

Also, we are very sure that we wired it correctly, because we did it according to the picture in the lab view example.

Any help would be much appreciated. Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2015, 00:29
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,579
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: Help with Gyro

The ADXRS453Z is a digital gyro. The LabVIEW gyro library is for an analog gyro. You will have to write your own driver and integration routine to use the ADXRS453Z.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2015, 20:45
Caitlinnnnn99's Avatar
Caitlinnnnn99 Caitlinnnnn99 is offline
Why does bag come so soon?
AKA: Caitlin T-HB
FRC #3250 (Kennedy Robotics)
Team Role: Mechanical
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Sacramento
Posts: 16
Caitlinnnnn99 will become famous soon enough
Re: Help with Gyro

Thanks Joe,
The new labview 2015 has provided us with an example code for this specific sensor using SPI Vi's. We've put this example program into our robot program and have also tested with just the example program and the results are still the same: an increasing number for the angle.

We need some help on changing this to where we read the actual angle of the gyro's position. Not a constantly increasing number, even when the gyro isn't moving.

Also, in the program it seems to be adding the rate of angular change?
But the thing is when we leave the sensor still it continues to rise in "angle".
Why would it continue to increase even when the gyro is still?

I have attached pictures of the example code we are using.
Attached Thumbnails
Click image for larger version

Name:	Gyro Example Block Diagram.PNG
Views:	76
Size:	132.2 KB
ID:	17789  Click image for larger version

Name:	Gyro Example Begin Front Panel.PNG
Views:	81
Size:	340.2 KB
ID:	17790  
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2015, 23:57
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Help with Gyro

I'm not familiar with the gyro or LabView but on page 7 of this data sheet there is some data for drift with this gyro. Most gyros "drift" over time, meaning 0.2 degrees may be incremented every second even when the gyro is stationary.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me

Last edited by Team3266Spencer : 10-01-2015 at 00:00.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2015, 00:19
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 252
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: Help with Gyro

Sorry that this post is a little out of place, but what is your application of the gyro in this years game? Autonomous or teleop? I went over the use of a gyro with a few members of my team and they seemed to deem it unnecessary. Normally I would agree, (our team is not particularly known for our programming prowess). I am interested this year because of the need to use every second available, my team plans on using autonomous to set ourselves up for teleop scoring. The more accurately we know our robot's position the faster we can move in autonomous, faster = higher score.
What do you guys see as the practical applications for gyroscopes in this years game? At what stages in the game? Is there any specific gyroscope you would recommend? Thanks in advance.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2015, 23:38
juchong's Avatar
juchong juchong is offline
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 107
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: Help with Gyro

Quote:
Originally Posted by Skyehawk View Post
Sorry that this post is a little out of place, but what is your application of the gyro in this years game? Autonomous or teleop? I went over the use of a gyro with a few members of my team and they seemed to deem it unnecessary. Normally I would agree, (our team is not particularly known for our programming prowess). I am interested this year because of the need to use every second available, my team plans on using autonomous to set ourselves up for teleop scoring. The more accurately we know our robot's position the faster we can move in autonomous, faster = higher score.
What do you guys see as the practical applications for gyroscopes in this years game? At what stages in the game? Is there any specific gyroscope you would recommend? Thanks in advance.
A gyro is required for field-oriented drive configurations. Think of it like this: If I push the joystick forward, the robot will always drive forward, regardless of where the "front" of the robot is. This feature makes it a LOT easier for inexperienced drivers (and mentors) to drive the robot! It's also essential for drive systems which can "strafe".

On a mecanum drive system, when coupled with encoders, the gyro makes programming an autonomous routine very precise! As a general rule, the more accurate data you have available to your drive system, the more precise your execution will be!
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2015, 15:25
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 419
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Help with Gyro

Quote:
Originally Posted by Caitlinnnnn99 View Post
Thanks Joe,
The new labview 2015 has provided us with an example code for this specific sensor using SPI Vi's. We've put this example program into our robot program and have also tested with just the example program and the results are still the same: an increasing number for the angle.

We need some help on changing this to where we read the actual angle of the gyro's position. Not a constantly increasing number, even when the gyro isn't moving.

Also, in the program it seems to be adding the rate of angular change?
But the thing is when we leave the sensor still it continues to rise in "angle".
Why would it continue to increase even when the gyro is still?

I have attached pictures of the example code we are using.
All a Gyro will ever give you is a roll rate for each axis. The key is that it is a rate not a heading. The thing you need to look for is gyro integration. This is the process of constantly adding in how fast you were turning for the last time period that you were measuring to your current heading. As for the reported movement even when the gyro is still, you need to calibrate to get rid of the false movement. Read http://www.chiefdelphi.com/forums/sh...ight=Best+Gyro it talks about a lot of this. Furthermore I think that if you decide not to use the WPI libraries you will need a co-processor (Arduino) to read the gyro, calculate the heading, and transmit it to the RIO via UART or another coms method.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
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 20:16.

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