Skip to content

Commit

Permalink
changed dcl and ccl to int16, no more packed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabramz committed Apr 27, 2024
1 parent 6f399e3 commit 7b98eda
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 120 deletions.
2 changes: 1 addition & 1 deletion Core/Inc/compute.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void compute_send_acc_status_message(acc_data_t* bmsdata);
*
* @return Returns a fault if we are not able to send
*/
void compute_send_bms_status_message(acc_data_t* bmsdata, int bms_state, bool balance);
void compute_send_bms_status_message(acc_data_t* bmsdata, int bms_state, bool balance_state);

/**
* @brief sends shutdown control message
Expand Down
8 changes: 4 additions & 4 deletions Core/Inc/datastructs.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ typedef struct {
uint16_t pack_ocv;
uint16_t pack_res;

uint16_t discharge_limit;
uint16_t charge_limit;
uint16_t cont_DCL;
uint16_t cont_CCL;
int16_t discharge_limit;
int16_t charge_limit;
int16_t cont_DCL;
int16_t cont_CCL;
uint8_t soc;

int8_t segment_average_temps[NUM_SEGMENTS];
Expand Down
Loading

0 comments on commit 7b98eda

Please sign in to comment.