Browse Source

move initial pwm trim update to pwm_ioctl load case

sbg
Mark Whitehorn 8 years ago committed by Lorenz Meier
parent
commit
08d36fe2af
  1. 7
      src/drivers/px4fmu/fmu.cpp

7
src/drivers/px4fmu/fmu.cpp

@ -771,10 +771,7 @@ PX4FMU::update_pwm_trims() @@ -771,10 +771,7 @@ PX4FMU::update_pwm_trims()
{
PX4_DEBUG("update_pwm_trims");
if (_mixers == nullptr) {
PX4_WARN("no mixers defined");
} else {
if (_mixers != nullptr) {
int16_t values[_max_actuators] = {};
@ -970,7 +967,6 @@ PX4FMU::cycle() @@ -970,7 +967,6 @@ PX4FMU::cycle()
pwm_limit_init(&_pwm_limit);
update_pwm_rev_mask();
update_pwm_trims();
#ifdef RC_SERIAL_PORT
@ -2347,6 +2343,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg) @@ -2347,6 +2343,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
_mixers->groups_required(_groups_required);
PX4_DEBUG("loaded mixers \n%s\n", buf);
update_pwm_trims();
}
}

Loading…
Cancel
Save