LV battery voltage, current, and state of charge monitoring.
More...
#include <stdint.h>
#include "main.h"
#include "can_library/generated/PDU.h"
#include "lv_soc_params.h"
Go to the source code of this file.
LV battery voltage, current, and state of charge monitoring.
- Author
- Millan Kumar (kumar.nosp@m.798@.nosp@m.purdu.nosp@m.e.ed.nosp@m.u)
-
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ lv_batt_adc_to_current()
| static float lv_batt_adc_to_current |
( |
uint16_t | adc_value | ) |
|
|
inlinestatic |
◆ lv_batt_adc_to_voltage()
| static float lv_batt_adc_to_voltage |
( |
uint16_t | adc_value | ) |
|
|
inlinestatic |
◆ lv_batt_init()
| void lv_batt_init |
( |
void | | ) |
|
◆ lv_batt_periodic()
| void lv_batt_periodic |
( |
void | | ) |
|
◆ LV_BATT_CS_AMP_GAIN
| float LV_BATT_CS_AMP_GAIN = 100.0f |
|
staticconstexpr |
◆ LV_BATT_CS_SHUNT_OHMS
| float LV_BATT_CS_SHUNT_OHMS = 0.002f |
|
staticconstexpr |
◆ LV_BATT_MAX_CURRENT_A
◆ LV_BATT_MAX_VOLTAGE_V
◆ LV_BATT_PACK_PARALLEL
| float LV_BATT_PACK_PARALLEL = 3.0f |
|
staticconstexpr |
◆ LV_BATT_PACK_SERIES
| float LV_BATT_PACK_SERIES = 7.0f |
|
staticconstexpr |
◆ LV_BATT_TASK_PERIOD_MS
| uint32_t LV_BATT_TASK_PERIOD_MS = 20 |
|
staticconstexpr |
◆ LV_BATT_VS_DIVIDER_GAIN
◆ LV_BATT_VS_R1_OHMS
| float LV_BATT_VS_R1_OHMS = 47000.0f |
|
staticconstexpr |
◆ LV_BATT_VS_R2_OHMS
| float LV_BATT_VS_R2_OHMS = 3400.0f |
|
staticconstexpr |