View Single Post
  #11   Spotlight this post!  
Unread 09-02-2017, 12:41
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 135
aeastet is an unknown quantity at this point
Re: How do you program the navx mxp in labview?

Quote:
Originally Posted by Levansic View Post
Is there any way to get a continuous fused heading or yaw that doesn't jump at 360/0 or -180/180 degrees? I ask, because we model and correct yaw in an ongoing basis to a modeled value. I know we could reset the gyro if the abs(yaw) > 120 or so, but we want to be able to do a 360 degree closed loop orbit for testing (without sparing at the point where yaw or heading magically jump 360 degrees).

It looks like those values are only being read off a registry, and not calculated in LabVIEW. Is there any way to tell the NavX to put the non-resetting values in those registers?
OK I developed this a few minutes ago. I can not promise that it works perfectly yet. I am working with the other developers at navX to test it to release to the public. You can try this vi with no guarantees that it will do everything you are asking.

Continuous Angle Tracker.vi

Try it and let me know if you need more capabilities.

Thank you for your input,

Tim
__________________
Team 6043 Allegan Tigers
LabVIEW Developer for Kauai Labs (navX and SF2 Libraries)
http://www.kauailabs.com/
Reply With Quote