Go to Post Hopefully LMFAO will cross paths with FRC71. They've been shufflin' since 2002. - Taylor [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 23-03-2014, 23:15
savagecreature savagecreature is offline
Registered User
AKA: Clint and/or Maria
FRC #4186 (Alameda Aztechs)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Alameda, CA
Posts: 22
savagecreature is an unknown quantity at this point
Gyro programming in LabVIEW

We're running our robot with a mechanum drive using LabVIEW as our programming environment. We were doing driving training today with our second robot and the benefits of having a gyro system that would allow us to ignore the facing of the robot became apparent. I've read some things from other teams who have similar systems, but they were programming more directly in C++. Hypothetically, how would we go about developing a system like this using LabVIEW? (we manage to muddle through, but LabVIEW still has many mysteries for us) Just wondering if you would be willing to share some thoughts? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2014, 23:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Gyro programming in LabVIEW

Look at the LabVIEW Gyro example. It shows you exactly how to use a gyro (yaw rate sensor), and Tutorial 7 tells you exactly how to incorporate into your own code what's in the example.

If you're using the Cartesian version of the MecanumDrive vi, it has an input for the gyro angle that will give you field-centric control of a holonomic drivebase.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-03-2014, 00:06
savagecreature savagecreature is offline
Registered User
AKA: Clint and/or Maria
FRC #4186 (Alameda Aztechs)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Alameda, CA
Posts: 22
savagecreature is an unknown quantity at this point
Re: Gyro programming in LabVIEW

Quote:
Originally Posted by Alan Anderson View Post
Look at the LabVIEW Gyro example. It shows you exactly how to use a gyro (yaw rate sensor), and Tutorial 7 tells you exactly how to incorporate into your own code what's in the example.

If you're using the Cartesian version of the MecanumDrive vi, it has an input for the gyro angle that will give you field-centric control of a holonomic drivebase.
thank you very much. We will do exactly that.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-03-2014, 00:42
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: Gyro programming in LabVIEW

One thing to pay attention to is that the kit gyro is limited to 250 degrees per second rotation rate. If your robot spins faster than this, then you will "upset" the gyro, and your orientation will be lost.

You can test your robot's rate by timing multiple rotations at full commanded rotation rate. If it is too fast (very likely, depending on gearing), you could scale the rotation rate to not achieve 250 dps.

If you don't want to throttle the rotation rate, check out a digital gyro. We are using one from Pololu. This thread has our code and more info:


http://www.chiefdelphi.com/forums/sh...d.php?t=127677

No matter what you do, you still will probably have drift or upset problems. Make sure you give your drivers a gyro reset button, so they can make the world right again for the robot.
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:10.

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