fix drive
This commit is contained in:
@ -25,15 +25,15 @@ public class Gyro extends CommandBase {
|
||||
public void execute() {
|
||||
if(basePilotable.getpitch()<10)
|
||||
{
|
||||
basePilotable.drive(0.4, 0, 0);
|
||||
basePilotable.drive(0.4, 0);
|
||||
}
|
||||
else if(basePilotable.getpitch()>-10)
|
||||
{
|
||||
basePilotable.drive(-0.4, 0, 0);
|
||||
basePilotable.drive(-0.4, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
basePilotable.drive(0, 0, 0);
|
||||
basePilotable.drive(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ public class Reculer extends CommandBase {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
basePilotable.drive(0.2, 0, 0);
|
||||
basePilotable.drive(0.2, 0);
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
Reference in New Issue
Block a user