Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
px4fmu: allow control of safety state on FMUv4
Browse files Browse the repository at this point in the history
allows for MAVLink control of safety state
  • Loading branch information
tridge committed Apr 13, 2016
1 parent 4f1bb33 commit 510154f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/drivers/px4fmu/fmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1521,9 +1521,16 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)

case PWM_SERVO_SET_ARM_OK:
case PWM_SERVO_CLEAR_ARM_OK:
break;

case PWM_SERVO_SET_FORCE_SAFETY_OFF:
/* force safety switch off */
_safety_off = true;
break;

case PWM_SERVO_SET_FORCE_SAFETY_ON:
// these are no-ops, as no safety switch
/* force safety switch on */
_safety_off = false;
break;

case PWM_SERVO_DISARM:
Expand Down

0 comments on commit 510154f

Please sign in to comment.