View Single Post
  #5   Spotlight this post!  
Unread 23-03-2015, 14:55
slibert slibert is online now
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 343
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 Trouble - inconsistent connection

Quote:
Originally Posted by Techwiz View Post
You are correct we are using optionB where the NavX is connected via just a USB cable.

To test to ensure that the USB connection, we connected the NavX to the MXP port on our RoboRio and noticed the same connectivity issues.

To try to further explain, isConnected() will sometimes return FALSE and get stuck in the FALSE state. Usually a robot power cycle fixes this. However much more often the isConnected() alternate between TRUE and FALSE. Readings from the NavX stop being updated and the getUpdateCount() value stops increasing momentarily.

We are unable to observe the lights on the NavX when we believe it is becoming disconnected. We are relying on the isConnected() and isCalibrating() as reported to the smartdashboard.
https://github.com/TechplexEngineer/...obot.java#L105

When we do notice isConnected() retuning FALSE, isCalibrating() doesn't usually change to TRUE.



We changed the baudrate to see if a lower speed would make a difference. We did not notice a change. I'll make sure that gets back to 57600.
Hi Blake,

Thanks; I'm suspicious of some interaction between the Roborio navX MXP Library and your robot code, though I don't see anything obvious by reading the code. If you just run the Java navX MXP Sample Code, do you see these random disconnects?

If the sample code also exhibits this issue, I'll send instructions for two tests to run which could identify a faulty USB cable or navX MXP board.
Reply With Quote