Log in

View Full Version : Robot Not Turning While in Autonomous Mode


M15onebillion
29-01-2013, 02:15
Hi, we are having problem with our Autonomous mode. Using the code below the robot seems to stop after going forward for 5 seconds, and does nothing afterwards.

public void autonomous() {
Chassidy.setSafetyEnabled(false);
Chassidy.drive(0.5, 0.0);
Timer.delay(5.0);
Chassidy.drive(0.0, 0.25);
Timer.delay(2.0);
Chassidy.drive(0.0, 0.0);
}


Does anyone know what is wrong with this code?
Much appreciated!

IisMathwizard
29-01-2013, 11:30
You need to include some sort of forward component to the drive method to move it... for example..
Chassidy.drive(0.5, 1);
To turn in place. The first number is an output magnitude where as the second is a turning value.

M15onebillion
29-01-2013, 15:37
Alright, Thank you!