OCCRA
Go to Post We can relate anything back to water, and by anything, I literally mean ANYTHING. Surfing around on Chief Delphi has proven that to me. - karomata [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media  
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 03-11-2018, 05:18 PM
adambusch adambusch is offline
Registered User
FRC #6800 (Valor)
Team Role: Alumni
 
Join Date: Mar 2017
Rookie Year: 2015
Location: Austin
Posts: 11
adambusch is an unknown quantity at this point
NavX Gyro Returning '0' Yaw Periodically

During my team's competition this weekend, we were having some issues with our navX returning false data. We were experiencing some inconsistent behavior with the values the navx was returning.

After enabling the robot, the sensor would behave normally and return correct heading values for ~20 seconds, and would then return a heading of 0 for ~20 seconds, and then return to behaving as normal. This behavior would continue erratically even if the robot was still or disabled.

Even when we placed the navX in its own loop in periodic tasks it would continue to behave like this.



Any ideas as to what is causing this? Nothing external is plugged into the sensor and this code works perfectly on our practice bot. After talking to some helpful members from team 4063, we found that this may have been caused by the navX having outdated firmware, but I don't see any patch notes in recent updates that could be related to this issue. Any input would be appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-11-2018, 06:42 PM
Dan Waxman Dan Waxman is offline
Registered User
FRC #0263 (Aftershock)
Team Role: Alumni
 
Join Date: Feb 2016
Rookie Year: 2016
Location: Long Island
Posts: 185
Dan Waxman is a splendid one to beholdDan Waxman is a splendid one to beholdDan Waxman is a splendid one to beholdDan Waxman is a splendid one to beholdDan Waxman is a splendid one to beholdDan Waxman is a splendid one to beholdDan Waxman is a splendid one to behold
Re: NavX Gyro Returning '0' Yaw Periodically

I've never had this issue with the NavX, but have had issues with faulty wires in buses returning weird values. What bus are you using for the NavX?
Reply With Quote
  #3   Spotlight this post!  
Unread 03-11-2018, 09:08 PM
adambusch adambusch is offline
Registered User
FRC #6800 (Valor)
Team Role: Alumni
 
Join Date: Mar 2017
Rookie Year: 2015
Location: Austin
Posts: 11
adambusch is an unknown quantity at this point
Re: NavX Gyro Returning '0' Yaw Periodically

We’re using the SPI bus directly on the rio
Reply With Quote
  #4   Spotlight this post!  
Unread 03-11-2018, 11:06 PM
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: 546
slibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond reputeslibert has a reputation beyond repute
Re: NavX Gyro Returning '0' Yaw Periodically

Quote:
Originally Posted by adambusch View Post
During my team's competition this weekend, we were having some issues with our navX returning false data. We were experiencing some inconsistent behavior with the values the navx was returning.

After enabling the robot, the sensor would behave normally and return correct heading values for ~20 seconds, and would then return a heading of 0 for ~20 seconds, and then return to behaving as normal. This behavior would continue erratically even if the robot was still or disabled.

Even when we placed the navX in its own loop in periodic tasks it would continue to behave like this.



Any ideas as to what is causing this? Nothing external is plugged into the sensor and this code works perfectly on our practice bot. After talking to some helpful members from team 4063, we found that this may have been caused by the navX having outdated firmware, but I don't see any patch notes in recent updates that could be related to this issue. Any input would be appreciated.
There was one firmware fix this year that addressed a problem seen on about 1% of the boards, where SPI was used. This problem would cause updates from the sensor to be discarded because the messages were being corrupted sometimes. The symptom doesn't sound exactly like what you are reporting (because the yaw value wouldn't be reset to 0 when the messages are discarded), but you might consider updating the firmware.

One thing to check is duing the times when zero values are being returned, is the "isConnected()" method (typically, teams display the status of this on the smart dashboard to debug this) indicating TRUE or FALSE. Secondly, when zero values are being returned, are the S1 and S2 LEDs on the board both solid on? (they should be)

You might also look for something that might be causing a periodic electrical short, perhaps something connected to one of the Expansion IO pins. Keeping the isConnected() indicator on the dashboard will doing this investigation could be helpful.

Let us know what you find; if there's continued problems we can ship you a replacement sensor (contact support@kauailabs.com for more details).

- scott
Reply With Quote
  #5   Spotlight this post!  
Unread 03-21-2018, 04:01 PM
adambusch adambusch is offline
Registered User
FRC #6800 (Valor)
Team Role: Alumni
 
Join Date: Mar 2017
Rookie Year: 2015
Location: Austin
Posts: 11
adambusch is an unknown quantity at this point
Re: NavX Gyro Returning '0' Yaw Periodically

Thank you for the help! Updating the firmware and switching from SPI to I2C fixed all of the issues we were experiencing before.
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 04:42 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi