Skip to content

Commit a201648

Browse files
committed
Changed field reset pose for testing over wb.
1 parent b080d46 commit a201648

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

TeamCode/src/main/kotlin/pioneer/opmodes/teleop/drivers/TeleopDriver1.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,14 @@ class TeleopDriver1(
116116

117117
private fun handleResetPose() {
118118
if (gamepad.options) {
119-
if (bot.allianceColor == AllianceColor.RED) {
120-
bot.pinpoint?.reset(Pose(-86.7, -99.0, theta = 0.1))
121-
} else {
122-
bot.pinpoint?.reset(Pose(86.7, -99.0, theta = 0.1))
123-
}
119+
//FIXME: Reset pose is just set to red for testing over WB, no blue side
120+
bot.pinpoint?.reset(Pose(-86.7, -99.0, theta = 0.1))
121+
122+
// if (bot.allianceColor == AllianceColor.RED) {
123+
// bot.pinpoint?.reset(Pose(-86.7, -99.0, theta = 0.1))
124+
// } else {
125+
// bot.pinpoint?.reset(Pose(86.7, -99.0, theta = 0.1))
126+
// }
124127
}
125128
}
126129
}

0 commit comments

Comments
 (0)