Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Driving Issues Need Help (http://www.chiefdelphi.com/forums/showthread.php?t=144250)

jessss 20-02-2016 16:51

Driving Issues Need Help
 
We are just starting to practice driving our robot but it isn't driving straight like it should. The robot usually makes it about 5 feet and then it will stop and jerk to the left or right, then after another pause it starts driving forward again. We are sure its a programming issue because we checked the motors and chains pulling the wheels and they are fine.

As far as code goes for driving, we just have the basic (in Java)
Code:

public void operatorControl(){
              myDrive.setSafetyEnabled(true);
              while (isOperatorControl() && isEnabled()){
                myDrive.arcadeDrive(stick);
                Timer.delay(0.01);

We are currently testing to make sure it isn't the controller we're using but it hasn't been having any other issues with it.

Mark McLeod 20-02-2016 17:05

Re: Driving Issues Need Help
 
Look to see what all the status lights are doing when this happens.
Look at the Driver log file plots and Event List to see what else occurred at the time the robot stopped.

You may just be browning out.


All times are GMT -5. The time now is 07:45.

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