Skip to content

Commit

Permalink
not working when steered to right
Browse files Browse the repository at this point in the history
  • Loading branch information
CL16gtgh committed May 22, 2024
1 parent 23be5cd commit 2b56423
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/MCU_rev15_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 9 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t>(steering_system.getSteeringSystemData().status));
}

}

/*
Expand Down

0 comments on commit 2b56423

Please sign in to comment.