mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
AP_BattMonitor: fixed typos
This commit is contained in:
parent
000af43db6
commit
9d8cad4eea
@ -133,7 +133,7 @@ uint8_t AP_BattMonitor_SMBus::get_PEC(const uint8_t i2c_addr, uint8_t cmd, bool
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// prepare temp buffer for calcing crc
|
// prepare temp buffer for calculating crc
|
||||||
uint8_t tmp_buff[len+3];
|
uint8_t tmp_buff[len+3];
|
||||||
tmp_buff[0] = i2c_addr << 1;
|
tmp_buff[0] = i2c_addr << 1;
|
||||||
tmp_buff[1] = cmd;
|
tmp_buff[1] = cmd;
|
||||||
|
@ -79,7 +79,7 @@ void AP_BattMonitor_SMBus_Maxell::timer()
|
|||||||
|
|
||||||
read_full_charge_capacity();
|
read_full_charge_capacity();
|
||||||
|
|
||||||
// FIXME: Preform current integration if the remaining capacity can't be requested
|
// FIXME: Perform current integration if the remaining capacity can't be requested
|
||||||
read_remaining_capacity();
|
read_remaining_capacity();
|
||||||
|
|
||||||
read_temp();
|
read_temp();
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#define BATTMONITOR_SMBUS_SOLO_CELL_VOLTAGE 0x28 // cell voltage register
|
#define BATTMONITOR_SMBUS_SOLO_CELL_VOLTAGE 0x28 // cell voltage register
|
||||||
#define BATTMONITOR_SMBUS_SOLO_CURRENT 0x2a // current register
|
#define BATTMONITOR_SMBUS_SOLO_CURRENT 0x2a // current register
|
||||||
#define BATTMONITOR_SMBUS_SOLO_BUTTON_DEBOUNCE 6 // button held down for 5 intervals will cause a power off event
|
#define BATTMONITOR_SMBUS_SOLO_BUTTON_DEBOUNCE 6 // button held down for 5 intervals will cause a power off event
|
||||||
#define BATTMONITOR_SMBUS_SOLO_NUM_CELLS 4 // solo's battery back is 4S
|
#define BATTMONITOR_SMBUS_SOLO_NUM_CELLS 4 // solo's battery pack is 4S
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Other potentially useful registers, listed here for future use
|
* Other potentially useful registers, listed here for future use
|
||||||
|
Loading…
Reference in New Issue
Block a user