Skip to content

Commit

Permalink
swapped CAN message assignment for pots
Browse files Browse the repository at this point in the history
  • Loading branch information
CL16gtgh committed May 26, 2024
1 parent 082dd46 commit 7d18695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/MCU_rev15_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


// pindefs
const int ADC1_CS = 34;
const int ADC2_CS = 33;
const int ADC3_CS = 29;
const int ADC1_CS = 34; // Main ECU
const int ADC2_CS = 33; // FL corner board
const int ADC3_CS = 29; // FR corner board
const int SOFTWARE_OK = 8;
const int WATCHDOG_INPUT = 32;

Expand Down
4 changes: 2 additions & 2 deletions lib/interfaces/src/TelemetryInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ void TelemetryInterface::update_suspension_CAN_msg(const AnalogConversion_s &lc_
MCU_SUSPENSION_t sus;
sus.load_cell_fl = lc_fl.raw;
sus.load_cell_fr = lc_fr.raw;
sus.potentiometer_fl = pots_fr.raw;
sus.potentiometer_fr = pots_fl.raw;
sus.potentiometer_fl = pots_fl.raw;
sus.potentiometer_fr = pots_fr.raw;

enqueue_new_CAN<MCU_SUSPENSION_t>(&sus, &Pack_MCU_SUSPENSION_hytech);
}
Expand Down

0 comments on commit 7d18695

Please sign in to comment.