|
|
@ -161,8 +161,6 @@ void PX4RCOutput::set_safety_pwm(uint32_t chmask, uint16_t period_us) |
|
|
|
int ret = ioctl(_pwm_fd, PWM_SERVO_SET_DISARMED_PWM, (long unsigned int)&pwm_values); |
|
|
|
int ret = ioctl(_pwm_fd, PWM_SERVO_SET_DISARMED_PWM, (long unsigned int)&pwm_values); |
|
|
|
if (ret != OK) { |
|
|
|
if (ret != OK) { |
|
|
|
hal.console->printf("Failed to setup disarmed PWM for 0x%08x to %u\n", (unsigned)chmask, period_us); |
|
|
|
hal.console->printf("Failed to setup disarmed PWM for 0x%08x to %u\n", (unsigned)chmask, period_us); |
|
|
|
} else { |
|
|
|
|
|
|
|
hal.console->printf("Setup disarmed PWM for 0x%08x to %u\n", (unsigned)chmask, period_us); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|