From 9d8cad4eeaf9b0c5007d7b7c69361932adf076c0 Mon Sep 17 00:00:00 2001 From: Arjun Vinod Date: Mon, 10 Dec 2018 18:30:47 -0500 Subject: [PATCH] AP_BattMonitor: fixed typos --- libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp | 2 +- libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp | 2 +- libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp b/libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp index d04e3f9f02..e0f4da2e1e 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp +++ b/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; } - // prepare temp buffer for calcing crc + // prepare temp buffer for calculating crc uint8_t tmp_buff[len+3]; tmp_buff[0] = i2c_addr << 1; tmp_buff[1] = cmd; diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp b/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp index 72195dd57b..9dfdaf0199 100755 --- a/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp +++ b/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.cpp @@ -79,7 +79,7 @@ void AP_BattMonitor_SMBus_Maxell::timer() 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_temp(); diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.cpp b/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.cpp index 1ef8fc706e..d57d4df697 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.cpp +++ b/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_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_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