Go to Post You know FIRST is on the level of sports when you can give predictions like sports casters do. :) - RoboMaster [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 14-01-2016, 20:57
Brindlefly's Avatar
Brindlefly Brindlefly is offline
Registered User
AKA: Jake Kinsella
FRC #4761 (Robockets)
Team Role: Leadership
 
Join Date: Nov 2014
Rookie Year: 2014
Location: Reading, MA
Posts: 8
Brindlefly will become famous soon enough
Angry NavX Compass Stuck at 270

This year our team is working with the NavX for both its gyro and its compass. While experimenting with it I was able to get the compass values but when I redeployed I found that the compass was stuck at 270 degrees. When I saw this I tried to pull gyro values to confirm that the NavX was working and I found that the gyro was working fine. Any help with getting the compass unstuck would be much appreciated.
  #2   Spotlight this post!  
Unread 15-01-2016, 00:15
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: 349
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 Compass Stuck at 270

Quote:
Originally Posted by Brindlefly View Post
This year our team is working with the NavX for both its gyro and its compass. While experimenting with it I was able to get the compass values but when I redeployed I found that the compass was stuck at 270 degrees. When I saw this I tried to pull gyro values to confirm that the NavX was working and I found that the gyro was working fine. Any help with getting the compass unstuck would be much appreciated.
Have you calibrated the magnetometer? The output of the magnetometer is only valid once calibrated. See this page for more info: http://navx-mxp.kauailabs.com/guidan...er-calibration
  #3   Spotlight this post!  
Unread 21-01-2016, 20:44
Brindlefly's Avatar
Brindlefly Brindlefly is offline
Registered User
AKA: Jake Kinsella
FRC #4761 (Robockets)
Team Role: Leadership
 
Join Date: Nov 2014
Rookie Year: 2014
Location: Reading, MA
Posts: 8
Brindlefly will become famous soon enough
Re: NavX Compass Stuck at 270

I have been messing with the calibration all week and I can get it unstuck but it never gives me actual reading. Sometimes when I calibrate it returns an angle of around 280 and other times it will give me an angle around 300-360 and 0-45. I think I am doing the calibration correctly (I have a box with labels of each axis and I rotate it along with the pictures). It would be great to get some help with the calibration.
  #4   Spotlight this post!  
Unread 22-01-2016, 01:45
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: 349
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 Compass Stuck at 270

Quote:
Originally Posted by Brindlefly View Post
I have been messing with the calibration all week and I can get it unstuck but it never gives me actual reading. Sometimes when I calibrate it returns an angle of around 280 and other times it will give me an angle around 300-360 and 0-45. I think I am doing the calibration correctly (I have a box with labels of each axis and I rotate it along with the pictures). It would be great to get some help with the calibration.
After you have calibrated the sensor, when you display the values from the sensor in the navXUI utility, is the "Magnetic Disturbance" indicator shown? [This indicator is also available in the Java, C++ and LabVIEW libraries.]

The navX-MXP magnetometer calibration includes enough information for the software to determine the expected strength of the earth's magnetic field. And if it receives values that exceed that expected strength of the magnetic field, it determines that the magnetic field it is mesuring is "disturbed". When this reading is "disturbed", the values are not useful. This is described a bit more in the "Magnetometer Calibration" online documentation.

For instance, once the navX-MXP magnetometer calibration has been performed, if you operate the navX-MXP and move a cell phone (which emits a small magnetic field very near the cell phone) near the sensor, the sensor reading goes haywire and the "magnetic disturbance" indicator is displayed.

The earth's magnetic field is relatively weak compared to the magnetic field from PCs, cell phones, robot motors and other things like that. So small amounts of magnetic disturbance can cause big problems w/the compass readings. The "Magnetic Disturbance" indicator tells you when this is happening.

If you've followed the documented magnetometer calibration steps as you've said, that's the next thing to look into. I am suspicious you are operating the sensor near other magnetic fields (for instance, near a PC which uses motors to spin a fan to keep it cool, or near a cell phone, or near energized motors on you robot).
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:58.

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