Skip to content

Commit

Permalink
AP_BattMonitor: fixed reset_remaining() for INAxxx and LTC2946
Browse files Browse the repository at this point in the history
these can use the generic reset_remaining() call in the backend
  • Loading branch information
tridge committed Aug 7, 2023
1 parent ac6c6d4 commit c2acc7d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion libraries/AP_BattMonitor/AP_BattMonitor_INA239.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class AP_BattMonitor_INA239 : public AP_BattMonitor_Backend
bool has_cell_voltages() const override { return false; }
bool has_temperature() const override { return false; }
bool has_current() const override { return true; }
bool reset_remaining(float percentage) override { return false; }
bool get_cycle_count(uint16_t &cycles) const override { return false; }

void init(void) override;
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_BattMonitor/AP_BattMonitor_INA2xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class AP_BattMonitor_INA2XX : public AP_BattMonitor_Backend
bool has_cell_voltages() const override { return false; }
bool has_temperature() const override { return false; }
bool has_current() const override { return true; }
bool reset_remaining(float percentage) override { return false; }
bool get_cycle_count(uint16_t &cycles) const override { return false; }

void init(void) override;
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_BattMonitor/AP_BattMonitor_LTC2946.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class AP_BattMonitor_LTC2946 : public AP_BattMonitor_Backend
bool has_cell_voltages() const override { return false; }
bool has_temperature() const override { return false; }
bool has_current() const override { return true; }
bool reset_remaining(float percentage) override { return false; }
bool get_cycle_count(uint16_t &cycles) const override { return false; }

virtual void init(void) override;
Expand Down

0 comments on commit c2acc7d

Please sign in to comment.