HAL_PX4: IO_SET_FEATURES is not needed any more

This commit is contained in:
Andrew Tridgell 2013-01-27 15:05:28 +11:00
parent 8375abdd99
commit 4fd7630ec9

View File

@ -23,8 +23,7 @@ void PX4RCOutput::init(void* unused)
if (_pwm_fd == -1) { if (_pwm_fd == -1) {
hal.scheduler->panic("Unable to open " PWM_OUTPUT_DEVICE_PATH); hal.scheduler->panic("Unable to open " PWM_OUTPUT_DEVICE_PATH);
} }
if (ioctl(_pwm_fd, PWM_IO_SET_FEATURES, PWM_IO_FEATURE_ARM_OK) != 0 || if (ioctl(_pwm_fd, PWM_SERVO_ARM, 0) != 0) {
ioctl(_pwm_fd, PWM_SERVO_ARM, 0) != 0) {
hal.console->printf("RCOutput: Unable to setup IO arming\n"); hal.console->printf("RCOutput: Unable to setup IO arming\n");
} }
} }