INA226: Integrate with PX4 (#12673)

* Publish I2C battery data as battery_status
This commit is contained in:
Timothy Scott
2019-12-28 12:30:11 -05:00
committed by Daniel Agar
parent 574b482fdb
commit fc1341208f
7 changed files with 670 additions and 428 deletions
+5
View File
@@ -98,6 +98,11 @@ Battery::Battery(int index, ModuleParams *parent) :
updateParams();
}
Battery::~Battery()
{
orb_unadvertise(_orb_advert);
}
void
Battery::reset()
{