mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 01:13:33 +08:00
INA226: Integrate with PX4 (#12673)
* Publish I2C battery data as battery_status
This commit is contained in:
committed by
Daniel Agar
parent
574b482fdb
commit
fc1341208f
@@ -98,6 +98,11 @@ Battery::Battery(int index, ModuleParams *parent) :
|
||||
updateParams();
|
||||
}
|
||||
|
||||
Battery::~Battery()
|
||||
{
|
||||
orb_unadvertise(_orb_advert);
|
||||
}
|
||||
|
||||
void
|
||||
Battery::reset()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user