mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-15 22:02:33 +00:00
UwU
This commit is contained in:
@@ -17,16 +17,16 @@ public class dance extends CyberarmState {
|
||||
@Override
|
||||
public void exec() {
|
||||
float rotation = robot.getIMURotation();
|
||||
if (rotation <RotationLimit) {
|
||||
powerWorks = -speed;
|
||||
}else {
|
||||
powerWorks = speed;
|
||||
|
||||
}
|
||||
robot.driveBackRight.setPower(powerWorks);
|
||||
robot.driveBackLeft.setPower(-powerWorks);
|
||||
robot.driveFrontLeft.setPower(-powerWorks);
|
||||
robot.driveFrontRight.setPower(powerWorks);
|
||||
|
||||
if (1 < rotation && rotation< 15){
|
||||
powerWorks = 0;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user