support mag power compensation with battery_status instance 1

This commit is contained in:
baumanta
2020-04-28 08:36:44 +02:00
committed by Beat Küng
parent 503bd15b82
commit 48cf38d623
8 changed files with 51 additions and 48 deletions
+2 -7
View File
@@ -954,12 +954,7 @@ void VotedSensorsUpdate::update_mag_comp_armed(bool armed)
_mag_compensator.update_armed_flag(armed);
}
void VotedSensorsUpdate::update_mag_comp_throttle(float throttle)
void VotedSensorsUpdate::update_mag_comp_power(float power)
{
_mag_compensator.update_throttle(throttle);
}
void VotedSensorsUpdate::update_mag_comp_current(float current)
{
_mag_compensator.update_current(current);
_mag_compensator.update_power(power);
}