|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! Last edited by M15onebillion : 29-01-2013 at 02:19. |
|
#2
|
||||
|
||||
|
Re: Robot Not Turning While in Autonomous Mode
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. |
|
#3
|
|||
|
|||
|
Re: Robot Not Turning While in Autonomous Mode
Alright, Thank you!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|