mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 01:03:34 +08:00
Removed all swapping of uORB instances
This commit is contained in:
committed by
Lorenz Meier
parent
6452b7e014
commit
4c1adc088f
@@ -165,14 +165,6 @@ Battery::publish()
|
||||
orb_publish_auto(ORB_ID(battery_status), &_orb_advert, &_battery_status, &_orb_instance, ORB_PRIO_DEFAULT);
|
||||
}
|
||||
|
||||
void
|
||||
Battery::swapUorbAdvert(Battery &other)
|
||||
{
|
||||
orb_advert_t tmp = _orb_advert;
|
||||
_orb_advert = other._orb_advert;
|
||||
other._orb_advert = tmp;
|
||||
}
|
||||
|
||||
void
|
||||
Battery::filterVoltage(float voltage_v)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user