arming: added PWM_SERVO_SET_ARM_OK and PWM_SERVO_CLEAR_ARM_OK

these new ioctls allow for the flight code to tell the IO board that
arming can proceed
This commit is contained in:
Andrew Tridgell
2013-05-16 08:39:24 +02:00
committed by Lorenz Meier
parent d02f5c5505
commit fa816d0fd6
3 changed files with 21 additions and 0 deletions
+5
View File
@@ -606,6 +606,11 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
up_pwm_servo_arm(true);
break;
case PWM_SERVO_SET_ARM_OK:
case PWM_SERVO_CLEAR_ARM_OK:
// these are no-ops, as no safety switch
break;
case PWM_SERVO_DISARM:
up_pwm_servo_arm(false);
break;