Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Java Gyro help (http://www.chiefdelphi.com/forums/showthread.php?t=127362)

tophkissane 01-03-2014 22:39

Java Gyro help
 
We are using a field-centric drive system this year with mecanum wheels. In autonomous we want to start with the side of the robot facing down field so instead of restarting the gyro we want it to start at 90 degrees. I am having trouble figuring out how to do this though. Any help is much appreciated

Ether 01-03-2014 22:45

Re: Java Gyro help
 
Quote:

Originally Posted by tophkissane (Post 1351637)
We are using a field-centric drive system this year with mecanum wheels. In autonomous we want to start with the side of the robot facing down field so instead of restarting the gyro we want it to start at 90 degrees. I am having trouble figuring out how to do this though. Any help is much appreciated

Just zero it, then add 90 degrees to the value you read from the gyro.




All times are GMT -5. The time now is 02:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi