Browse Source

AP_BattMonitor: fixed typos

master
Arjun Vinod 6 years ago committed by Randy Mackay
parent
commit
9d8cad4eea
  1. 2
      libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp
  2. 2
      libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp
  3. 2
      libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.cpp

2
libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp

@ -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;

2
libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp

@ -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();

2
libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.cpp

@ -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…
Cancel
Save