Skip to content

Commit

Permalink
fixies fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Feb 1, 2025
1 parent 83f554b commit 6f05fea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const void print_bms_stats(acc_data_t *acc_data)
uint8_t num_cells = get_num_cells(&acc_data->chip_data[c]);
for(uint8_t cell = 0; cell < num_cells; cell++)
{
printf("%d\t", acc_data->chips[c].cell.c_codes[cell]);
printf("%d\t", acc_data->chip_data[chip].cell_voltages[cell]);
}
printf("\n");
}
Expand All @@ -210,7 +210,7 @@ const void print_bms_stats(acc_data_t *acc_data)
uint8_t num_cells = get_num_cells(&acc_data->chip_data[c]);
for(uint8_t cell = 0; cell < num_cells; cell++)
{
printf("%.3f\t", getVoltage(acc_data->chips[c].fcell.fc_codes[cell]));
printf("%.3f\t", acc_data->chip_data[c].cell_voltages[cell]);
}
printf("\n");
}
Expand Down
18 changes: 9 additions & 9 deletions Core/Src/shep_tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ void vDebugMode(void *pv_params)
bmsdata->chip_data[chip].cell_temp[cell],

10000 * getVoltage(
bmsdata->chips[chip]
.cell
.c_codes[cell]),
bmsdata->chip_data[chip]
.cell_voltages
[cell]),

10000 * getVoltage(
bmsdata->chips[chip]
.cell
.c_codes[cell +
bmsdata->chip_data[chip]
.cell_voltages
[cell +
1]),

chip,
Expand All @@ -167,9 +167,9 @@ void vDebugMode(void *pv_params)
bmsdata->chip_data[chip]
.cell_temp[10]),
10000 * getVoltage(
bmsdata->chips[chip]
.cell
.c_codes[10]),
bmsdata->chip_data[chip]
.cell_voltages
[10]),
NER_GET_BIT(
bmsdata->chips[chip].tx_cfgb.dcc,
10),
Expand Down
2 changes: 1 addition & 1 deletion Drivers/adbms
Submodule adbms updated from eef63d to c0e54f

0 comments on commit 6f05fea

Please sign in to comment.