mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_PX4: IO_SET_FEATURES is not needed any more
This commit is contained in:
parent
8375abdd99
commit
4fd7630ec9
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user