Go to Post A HUMAN PLAYER is not a ROBOT. - cgmv123 [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 01-25-2015, 09:10 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Calibrate Gyro

Does anyone know how to calibrate the gyro on the fly and not just at the begin?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-25-2015, 09:21 PM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Calibrate Gyro

To calibrate the bias, your robot needs to be sitting still. If it is moving, then that value that will map to zero rotation, and that is not what you want.

The bias calibration takes place in Open. You can copy that code and do it at any point, or you can call Open someplace other than Begin. If you don't really want to recalibrate, but instead just orient to the field, you can simply call reset so the current orientation will return zero.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 01-25-2015, 10:19 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Calibrate Gyro

Thanks for your advice. I have been running into problems with gyro drift and i am wanting to reduce it some. So my plan was to have a button on the driver station that i could push right before the match start to calibrate the gyro to the current temp. Is that possible?
Reply With Quote
  #4   Spotlight this post!  
Unread 01-26-2015, 07:43 AM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Calibrate Gyro

If the robot is disabled, like it will be before the match starts, it runs the code in the Disabled VI. Which is mostly empty.

You can of course read the joystick there and close and then reopen the gyro and store its refnum in the registry. You can also measure the drift and show it on the dashboard so that the drive team will know how much it is drifting while disabled and presumably sitting still.

Greg McKaskle
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 06:02 PM.

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