diff --git a/include/MCU_rev15_defs.h b/include/MCU_rev15_defs.h index eee487cb9..dd0cc7752 100644 --- a/include/MCU_rev15_defs.h +++ b/include/MCU_rev15_defs.h @@ -86,7 +86,7 @@ const float LOADCELL_RR_SCALE = 0.06; const float LOADCELL_RR_OFFSET = 23.761 / LOADCELL_RR_SCALE; // Steering parameters -const float PRIMARY_STEERING_SENSE_OFFSET = -21.18; // units are degrees +const float PRIMARY_STEERING_SENSE_OFFSET = 0.0; // units are degrees const int SECONDARY_STEERING_SENSE_LEFTMOST_BOUND = 812; const int SECONDARY_STEERING_SENSE_RIGHTMOST_BOUND = 3179; const int SECONDARY_STEERING_SENSE_CENTER = 1970; diff --git a/src/main.cpp b/src/main.cpp index ec9079834..1b35c18fc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -325,6 +325,15 @@ void loop() // send CAN send_all_CAN_msgs(CAN2_txBuffer, &INV_CAN); send_all_CAN_msgs(CAN3_txBuffer, &TELEM_CAN); + + if (curr_tick.triggers.trigger5) + { + Serial.print("Steering system angle: "); + Serial.println(steering_system.getSteeringSystemData().angle); + Serial.print("Steering system status: "); + Serial.println(static_cast(steering_system.getSteeringSystemData().status)); + } + } /*