helloworld
This commit is contained in:
parent
58bd108a35
commit
29530c9c92
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ public class FTC2024WeRobotControl {
|
||||||
double left_multiplier = -((double) Math.signum(angle));
|
double left_multiplier = -((double) Math.signum(angle));
|
||||||
double right_multiplier = ((double) Math.signum(angle));
|
double right_multiplier = ((double) Math.signum(angle));
|
||||||
double m_power = motor_speed;
|
double m_power = motor_speed;
|
||||||
|
if(Math.abs(angle)===180){
|
||||||
|
angle = (double) ( ( (double) Math.signum(angle) ) * 179.9 );
|
||||||
|
}
|
||||||
while(Parent.opModeIsActive() && (Math.abs(robotOrientation.getYaw(AngleUnit.DEGREES) - start_yaw) < Math.abs(angle))){
|
while(Parent.opModeIsActive() && (Math.abs(robotOrientation.getYaw(AngleUnit.DEGREES) - start_yaw) < Math.abs(angle))){
|
||||||
robotOrientation = Parent.imu.getRobotYawPitchRollAngles();
|
robotOrientation = Parent.imu.getRobotYawPitchRollAngles();
|
||||||
double yaw = robotOrientation.getYaw(AngleUnit.DEGREES);
|
double yaw = robotOrientation.getYaw(AngleUnit.DEGREES);
|
||||||
|
|
Loading…
Reference in a new issue