OCCRA
Go to Post You have the rest of your life to play video games. Time at an FRC tournament is precious. Use it wisely. - gblake [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 02-13-2018, 04:55 PM
Charlie shen Charlie shen is offline
Registered User
FRC #1391
 
Join Date: Nov 2016
Location: westtown
Posts: 1
Charlie shen is an unknown quantity at this point
Exclamation Issues on NAVX

We have been working on implementing the NAVX. However, the connection doesn't work for the SPI connection or I2C connection, and with the USB, it only shows as connected in intermittent spurts (about half the time). When attempting to read the X,Y, and Z raw values, they are 0. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-13-2018, 05:40 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: Issues on NAVX

Quote:
Originally Posted by Charlie shen View Post
We have been working on implementing the NAVX. However, the connection doesn't work for the SPI connection or I2C connection, and with the USB, it only shows as connected in intermittent spurts (about half the time). When attempting to read the X,Y, and Z raw values, they are 0. Any ideas?
Hi Charlie,

I think it'd be best to focus on why the SPI and/or I2C connections are not working. I'm assuming you have a navX-MXP that is seated in the RoboRIO MXP slot, and that you have inserted the two screws so that the board is securely mounted to the RoboRIO.

Given that configuration, there are a few key things to check:

1) After the navX-MXP has completed the power-on sequence (which takes about 2 seconds), are the Green S1 and S2 LEDs on the sensor fully lit? If they are, then this indicates that the sensor and firmware are executing correctly.

2) Next, in your code I'd recommend outputting the value returned from the "isConnected()" method of the java AHRS class to the dashboard, and updating the dashboard regularly in your software. When you are having troubles, is this returning true?

If the result of test 1) is postive, but the isConnected() method is returning false, it's possible that there is a thread running in the robot application that is not yielding the processor so that the "IO Thread" in the navX-sensor library is not getting a chance to run. This thread has to run regularly, or else the library will detect a timeout condition because new data has not been recently retrieved from the sensor, and thus the software determines it is no longer connected.

Please let us know the results of your investigation to the above.

Thanks,

- scott
Reply With Quote
  #3   Spotlight this post!  
Unread 02-13-2018, 06:11 PM
Mr.R^2 Mr.R^2 is offline
Registered User
FRC #6762
 
Join Date: Apr 2017
Location: Hillsboro, NH
Posts: 47
Mr.R^2 is on a distinguished road
We had to declare a device id# in our code. After that, it started working without the direct is and sample.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-17-2018, 12:52 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: Issues on NAVX

Quote:
Originally Posted by Charlie shen View Post
We have been working on implementing the NAVX. However, the connection doesn't work for the SPI connection or I2C connection, and with the USB, it only shows as connected in intermittent spurts (about half the time). When attempting to read the X,Y, and Z raw values, they are 0. Any ideas?
Hi Charlie, just wanted to check in - were you able to resolve this issue?
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 02:08 AM.

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


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