Go to Post Everyone builds their robots uniquely, runs their teams differently, and prefers all kinds of flavors of ice cream. Now, we are seeing that folks vent and react differently to a frustrating situation. ... and that's ok. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2016, 18:30
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Navx Labview Issue

How do we zero the yaw (and other parameters for that matter) on the NavX board? We tried using the Z900_NavX_set_zeroyaw.vi but nothing happens. We run the vi at the beginning of our autonomous code to try to reset our robot position before we drive.
  #2   Spotlight this post!  
Unread 12-02-2016, 18:48
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 353
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Navx Labview Issue

Quote:
Originally Posted by pribusin View Post
How do we zero the yaw (and other parameters for that matter) on the NavX board? We tried using the Z900_NavX_set_zeroyaw.vi but nothing happens. We run the vi at the beginning of our autonomous code to try to reset our robot position before we drive.
In general, Zeroing the Yaw does not take effect until the board has completed it's Initial Yaw Offset calibration, which is described in the navX-MXP Calibration Process documentation.

Once calibration completes, the yaw can be zeroed at any time.

In addition, a resolution was just release for an issue in the LabVIEW Library in this area. If an attempt was made to zero the yaw immediately after opening it, failures might occur. The updated library that resolves this issue is here: https://github.com/FRC900/navX-MXP-L...s/tag/v2.0.5.0
  #3   Spotlight this post!  
Unread 02-03-2016, 13:39
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: Navx Labview Issue

Is there a way to tell when the start-up calibration is complete? We are just now revisiting the Navx for autonomous and we're unable to zero any parameters. Are we not waiting long enough before resetting them to zero? Does the start-up calibration happen every time the RoboRio restarts code after a download or only on power-up?

In fact we're even getting very strange results from 'displacement' as well. Not a continuously increasing value when the robot drives forward but almost a velocity reading.
  #4   Spotlight this post!  
Unread 02-03-2016, 17:12
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 353
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Navx Labview Issue

Quote:
Originally Posted by pribusin View Post
Is there a way to tell when the start-up calibration is complete? We are just now revisiting the Navx for autonomous and we're unable to zero any parameters. Are we not waiting long enough before resetting them to zero? Does the start-up calibration happen every time the RoboRio restarts code after a download or only on power-up?

In fact we're even getting very strange results from 'displacement' as well. Not a continuously increasing value when the robot drives forward but almost a velocity reading.
As long as you're running navX-MXP firmware version 2.0 or higher and you are using the 2.0 LabVIEW Library, you can check whether calibration is complete via the Z900_navX_Get_SystemInformation_Status.vi. This VI outputs a status cluster with a "Calibration Status" indicator; calibration is complete when it's value is IMU_CAL_STATE_COMPLETE.

The estimated displacement values are not accurate enough for tracking robot position to the accuracy typically needed for FRC robotics. There's more information on this at the navX-MXP Frequently Asked Questions page.
  #5   Spotlight this post!  
Unread 03-03-2016, 06:53
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: Navx Labview Issue

We're now using the Z900_navX_Get_SystemInformation_Status.vi to check for IMU_CAL_STATE_COMPLETE. That works. Initially we still couldn't zero the YAW though until we noticed a strange phenomenon. If we invoke the SET_YAW_ZERO.vi twice in a row the YAW value zeroes perfectly every time . I have no explanation for that but it appears to be solid. We will do more testing on that tonight.
Closed Thread


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 02:37.

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