L110¶
2 file(s) copied, then 5 change(s) in 2 file(s), 8 line(s) of code to write.
Copies¶
lessons/L110FollowerDriveTrain.javatomytry/L110FollowerDriveTrain.javalessons/L110FollowerOpMode.javatomytry/L110FollowerOpMode.java
L110FollowerDriveTrain¶
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/mytry/L110FollowerDriveTrain.java
A change¶
Delete 0 lines, write 4 lines.
--- before this change
+++ after it
@@ -44,6 +44,10 @@
// When on L110S030, see
// https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l110.html#l110s030
// for what to do here.
+ wheels[FL] = forward - strafe - turn;
+ wheels[FR] = forward + strafe + turn;
+ wheels[BL] = forward + strafe - turn;
+ wheels[BR] = forward - strafe + turn;
return wheels;
}
L110FollowerOpMode¶
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/mytry/L110FollowerOpMode.java
A change¶
Delete 0 lines, write 1 line.
--- before this change
+++ after it
@@ -36,6 +36,7 @@
// When on L110S040, see
// https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l110.html#l110s040
// for what to do here.
+ L110FollowerDriveTrain drivetrain;
// 'public' to match the parent class. 'public' allows access from any code.
@Override
A change¶
Delete 0 lines, write 1 line.
--- before this change
+++ after it
@@ -46,6 +46,7 @@
// When on L110S050, see
// https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l110.html#l110s050
// for what to do here.
+ drivetrain = new L110FollowerDriveTrain(hardware);
initAfter();
}
A change¶
Delete 1 line, write 1 line.
--- before this change
+++ after it
@@ -48,7 +48,7 @@
// for what to do here.
drivetrain = new L110FollowerDriveTrain(hardware);
- initAfter();
+ initAfter(drivetrain);
}
// 'public' to match the parent class. 'public' allows access from any code.
A change¶
Delete 0 lines, write 1 line.
--- before this change
+++ after it
@@ -94,6 +94,7 @@
// When on L110S060, see
// https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l110.html#l110s060
// for what to do here.
+ drivetrain.sticks(forward, strafe, turn);
boolean buttonA = gamepad1.a;
Tracker.publish("button/a", buttonA);