Charger control state machine implementation.
More...
#include "charging_fsm.h"
#include "adbms.h"
#include "can_library/faults_common.h"
#include "can_library/generated/A_BOX.h"
#include "can_library/generated/can_types.h"
Charger control state machine implementation.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ charging_fsm_periodic()
| void charging_fsm_periodic |
( |
void | | ) |
|
◆ is_charging_permitted()
| static bool is_charging_permitted |
( |
| ) |
|
|
inlinestatic |
◆ is_daqapp_requesting_charge()
| static bool is_daqapp_requesting_charge |
( |
| ) |
|
|
inlinestatic |
◆ is_elcon_ready()
| static bool is_elcon_ready |
( |
| ) |
|
|
inlinestatic |
◆ report_internal_state()
| static void report_internal_state |
( |
| ) |
|
|
inlinestatic |
◆ update_balance_command()
| static void update_balance_command |
( |
| ) |
|
|
inlinestatic |
◆ update_charge_command()
| static void update_charge_command |
( |
| ) |
|
|
inlinestatic |
◆ charge_command_amps
| uint16_t charge_command_amps = 0 |
◆ charge_command_volts
| uint16_t charge_command_volts = 0 |
◆ charge_enable
| bool charge_enable = false |
◆ charging_state
| charging_state_t charging_state = CHARGING_STATE_IDLE |
◆ g_bms
◆ MAX_PACK_CHARGING_AMPS
| uint16_t MAX_PACK_CHARGING_AMPS = 20 |
|
staticconstexpr |
◆ MAX_PACK_CHARGING_VOLTS
| uint16_t MAX_PACK_CHARGING_VOLTS = 540 |
|
staticconstexpr |
◆ next_charging_state
| charging_state_t next_charging_state = CHARGING_STATE_IDLE |