View Single Post
  #4   Spotlight this post!  
Unread 09-02-2017, 09:24
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Texas
Posts: 64
mshafer1 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?
I am attaching the vi's that we used last year to convert the yaw that we got from NavX (-180 to 180 if I remember correctly) to an absolute value (starting at zero and continuous counting from there, so -infinity to +infinity). I'm not sure what you mean by a modeled value, but this should give you an idea of how to do it if this is not what you meant.
Attached Files
File Type: zip ConvertToAbsolute.zip (12.3 KB, 3 views)
Reply With Quote