Skip to content

Commit

Permalink
relay delay validated
Browse files Browse the repository at this point in the history
  • Loading branch information
Akashem06 committed Mar 27, 2024
1 parent 7a7f571 commit f89967c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions projects/bms_carrier/src/relays_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ static const GpioAddress solar_relay_en = { .port = GPIO_PORT_C, .pin = 13 };
static void close_relays() {
// 300 MS GAP BETWEEN EACH RELAY BC OF CURRENT DRAW
gpio_set_state(&pos_relay_en, GPIO_STATE_HIGH);
delay_ms(200);
delay_ms(150);
gpio_set_state(&neg_relay_en, GPIO_STATE_HIGH);
delay_ms(200);
delay_ms(150);
gpio_set_state(&solar_relay_en, GPIO_STATE_HIGH);
delay_ms(200);
delay_ms(150);
}

static void open_relays() {
Expand Down
2 changes: 1 addition & 1 deletion projects/centre_console/src/update_dashboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void update_displays(void) {
float avg_speed = (get_motor_velocity_velocity_l() + get_motor_velocity_velocity_r()) / 2;
float speed_kph = avg_speed * CONVERT_VELOCITY_TO_KPH;
uint16_t batt_perc_val = get_battery_vt_batt_perc();
uint32_t aux_battery_voltage = get_battery_info_aux_batt_v()/100;
uint32_t aux_battery_voltage = get_battery_info_aux_batt_v() / 100;
if (speed_kph >= 100) {
seg_displays_set_int(&all_displays, (int)speed_kph, batt_perc_val, aux_battery_voltage);
} else {
Expand Down

0 comments on commit f89967c

Please sign in to comment.