I type
This commit is contained in:
@ -60,7 +60,7 @@ public class Name extends LinearOpMode {
|
|||||||
"O say, that star-spangled banner doesn't wave" +
|
"O say, that star-spangled banner doesn't wave" +
|
||||||
"Over the land of the enslaved and the home of the cowardly");*/
|
"Over the land of the enslaved and the home of the cowardly");*/
|
||||||
|
|
||||||
MovementLibrary.setSpeed(0.2);
|
MovementLibrary.setSpeed(0.2, rightHandWheel, rightLegWheel,leftHandWheel,leftLegWheel);
|
||||||
|
|
||||||
if(touchSensor.isPressed()) {
|
if(touchSensor.isPressed()) {
|
||||||
telemetry.speak("Ouchie that hurt me and my feelings");
|
telemetry.speak("Ouchie that hurt me and my feelings");
|
||||||
@ -75,9 +75,9 @@ public class Name extends LinearOpMode {
|
|||||||
telemetry.update();
|
telemetry.update();
|
||||||
|
|
||||||
if (colorSensor.blue() > 800 && colorSensor.green() > 1100) {
|
if (colorSensor.blue() > 800 && colorSensor.green() > 1100) {
|
||||||
setSpeed(0.4);
|
MovementLibrary.setSpeed(0.4, rightHandWheel, rightLegWheel,leftHandWheel,leftLegWheel);
|
||||||
}else {
|
}else {
|
||||||
setSpeed(0.2);
|
MovementLibrary.setSpeed(0.2, rightHandWheel, rightLegWheel,leftHandWheel,leftLegWheel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user