Use the second catapult motor in pwm
Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: Ib68aa460d36d6be56978cd43e468b4ee24c1ad41
diff --git a/y2024/wpilib_interface.cc b/y2024/wpilib_interface.cc
index 7cec608..16fb182 100644
--- a/y2024/wpilib_interface.cc
+++ b/y2024/wpilib_interface.cc
@@ -363,7 +363,7 @@
void Write(const superstructure::Output &output) override {
WritePwm(output.catapult_voltage(), catapult_kraken_one_.get());
- WritePwm(output.catapult_voltage(), catapult_kraken_one_.get());
+ WritePwm(output.catapult_voltage(), catapult_kraken_two_.get());
}
template <typename T>
@@ -681,7 +681,7 @@
SuperstructurePWMWriter superstructure_pwm_writer(&pwm_event_loop);
superstructure_pwm_writer.set_catapult_kraken_one(
make_unique<frc::TalonFX>(0));
- superstructure_pwm_writer.set_catapult_kraken_one(
+ superstructure_pwm_writer.set_catapult_kraken_two(
make_unique<frc::TalonFX>(1));
AddLoop(&pwm_event_loop);