View Single Post
  #5   Spotlight this post!  
Unread 17-01-2016, 22:34
Jonathan L. Jonathan L. is offline
Registered User
FRC #1094
 
Join Date: Jan 2013
Location: St. Louis MO
Posts: 64
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: navX 2016 Software Reset Displacement

Quote:
Originally Posted by Caboose View Post
My bad, I missed adding those reset commands, oops . Check the Latest Release, I've just added those functions. Thanks for catching that.
Awesome! I have updated our code.


Quote:
Originally Posted by euhlmann View Post
In C++ there is a ResetDisplacement function, so I'm surprised it's not in labview. I guess you'll have to define your own offset variables and subtract those from the values.

The only other thing I would say is not to rely on it too much. Since it works from the accelerometer it may be inaccurate, especially if your robot shakes around (eg going over the rough terrain, rock wall, etc), and it will get more and more inaccurate over time (like yaw, hence the reset functions for both in C++).
Definitely don't use it as the only metric for your position. Use rangefinders or image processing to confirm it.
We plan to use vision to finish at the end of our automode. We just want the navX to get us close.
Reply With Quote