Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Autonomous Mecanum Drive (http://www.chiefdelphi.com/forums/showthread.php?t=142758)

CjDace 01-29-2016 09:16 AM

Autonomous Mecanum Drive
 
Hey guys, me again, I'm not entirely sure on how to set up the autonomous mecanum drive. This is what we have as of right now
Code:

public void autonomousPeriodic() {
                    while (isAutonomous() && isEnabled()){
                            myDrive.mecanumDrive_Cartesian(.25, .25, 1, scotbot.getAngle());

Any possible help would be greatly appreciated.

TimTheGreat 01-29-2016 11:25 AM

Re: Autonomous Mecanum Drive
 
Quote:

Originally Posted by CjDace (Post 1531913)
Code:

public void autonomousPeriodic() {
                    while (isAutonomous() && isEnabled()){


First off, you shouldn't do this. You're using Iterative so the autonomousPeriodic gets called over and over. If you put a while loop in it messes this up.


All times are GMT -5. The time now is 08:25 AM.

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