View Single Post
  #1   Spotlight this post!  
Unread 03-20-2015, 10:56 PM
Techwiz's Avatar
Techwiz Techwiz is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 82
Techwiz will become famous soon enough
Navx Trouble - inconsistent connection

We have a NavX IMU connected via USB to the RoboRio. From time to time we seem to be loosing comminucation with the NavX. Watching the Update counter on the smart dashboard shoes hiccups along the way. Furthermore watching the isConnected() on the smart dashboard shows random disconnects.

We are at a loss. Its clear that the gyro(Yaw) reading is much less noisy. But for some reason when we execute turns using a PID controller and the Navx we get unpredictable results. Often the turn operates as we expect. However a fair amount of the trials we get a haywire result.

Our current robot code:
https://github.com/TechplexEngineer/fred2

Where the AHRS imu is instantiated:
https://github.com/TechplexEngineer/...Drive.java#L83

Using the imu in a PIDCommand for turning:
https://github.com/TechplexEngineer/...urn_angle.java
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)
Reply With Quote