fixed the names for the left and right drivetrain encoders
diff --git a/frc971/input/gyro_board_data.h b/frc971/input/gyro_board_data.h
index a1b8712..10135e3 100644
--- a/frc971/input/gyro_board_data.h
+++ b/frc971/input/gyro_board_data.h
@@ -9,8 +9,8 @@
struct GyroBoardData {
int64_t gyro_angle;
- int32_t right_drive;
int32_t left_drive;
+ int32_t right_drive;
int32_t shooter_angle;
int32_t shooter;
int32_t indexer;
diff --git a/frc971/input/gyro_board_reader.cc b/frc971/input/gyro_board_reader.cc
index 05adc5a..95cf5d7 100644
--- a/frc971/input/gyro_board_reader.cc
+++ b/frc971/input/gyro_board_reader.cc
@@ -186,8 +186,8 @@
&last_shooter_angle_rise_count_, &shooter_angle_rise_count_);
drivetrain.position.MakeWithBuilder()
- .right_encoder(drivetrain_translate(data->left_drive))
- .left_encoder(-drivetrain_translate(data->right_drive))
+ .right_encoder(drivetrain_translate(data->right_drive))
+ .left_encoder(-drivetrain_translate(data->left_drive))
.Send();
wrist.position.MakeWithBuilder()
diff --git a/gyro_board/src/usb/analog.c b/gyro_board/src/usb/analog.c
index 452f5f2..6e26e84 100644
--- a/gyro_board/src/usb/analog.c
+++ b/gyro_board/src/usb/analog.c
@@ -492,8 +492,8 @@
packet->gyro_angle = gyro_angle;
packet->shooter = encoder1_val;
- packet->right_drive = encoder4_val;
- packet->left_drive = encoder5_val;
+ packet->left_drive = encoder4_val;
+ packet->right_drive = encoder5_val;
packet->shooter_angle = encoder2_val;
packet->indexer = encoder3_val;
diff --git a/gyro_board/src/usb/analog.h b/gyro_board/src/usb/analog.h
index 262b230..b72218b 100644
--- a/gyro_board/src/usb/analog.h
+++ b/gyro_board/src/usb/analog.h
@@ -6,8 +6,8 @@
struct DataStruct {
int64_t gyro_angle;
- int32_t right_drive;
int32_t left_drive;
+ int32_t right_drive;
int32_t shooter_angle;
int32_t shooter;
int32_t indexer;