You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
517 B
22 lines
517 B
#pragma once |
|
|
|
#include "AP_BattMonitor.h" |
|
#include "AP_BattMonitor_Backend.h" |
|
|
|
#include <AP_Generator/AP_Generator_RichenPower.h> |
|
|
|
class AP_BattMonitor_Generator : public AP_BattMonitor_Backend |
|
{ |
|
public: |
|
|
|
using AP_BattMonitor_Backend::AP_BattMonitor_Backend; |
|
|
|
/// Read the battery voltage and current. Should be called at 10hz |
|
void read() override; |
|
|
|
/// returns true if battery monitor provides current info |
|
bool has_current() const override { return true; } |
|
|
|
void init(void) override {} |
|
|
|
};
|
|
|