![]() |
NavX Field-Centric drive (LabView)
Hello,
I noticed, after playing with the NavX from KuaiLabs a bit, that the GetYaw has a range from -180 to +180. My teams is planning to use field-centric driving. From a LabView perspective (using the Holonomic drive VI), will it take an input of -180 to +180? Also, how is the best way to "zero" the yaw? In other words, how can I let the robot which way North is (field-centrically)? Also, I looked at this example: https://code.google.com/p/navx-mxp/w...dOrientedDrive And it doesn't look like they compensated for the -180 to +180 range at all (we just added 180 to the output to get a 0-360 range) Thanks! |
Re: NavX Field-Centric drive (LabView)
Quote:
It's a very simple vector rotation. Code:
/** |
Re: NavX Field-Centric drive (LabView)
Quote:
|
Re: NavX Field-Centric drive (LabView)
Quote:
Same with Cosine. Try it in Excel or on your calculator. Or better yet, try it in a little LabVIEW program. |
Re: NavX Field-Centric drive (LabView)
Quote:
|
| All times are GMT -5. The time now is 08:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi