diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-26 17:45:11 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-26 17:45:11 +0100 |
commit | b757ebbda83a254a997126fd8f932f30174584cf (patch) | |
tree | 49a9918051d7ef4a3d63beab3b5961bba8ac6cdf | |
parent | 4298f68fcd39aa9820f9b522c38869ff0eb8bb0a (diff) | |
download | px4-firmware-b757ebbda83a254a997126fd8f932f30174584cf.tar.gz px4-firmware-b757ebbda83a254a997126fd8f932f30174584cf.tar.bz2 px4-firmware-b757ebbda83a254a997126fd8f932f30174584cf.zip |
Not arming FMU in HIL mode
-rw-r--r-- | apps/drivers/px4fmu/fmu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/drivers/px4fmu/fmu.cpp b/apps/drivers/px4fmu/fmu.cpp index 3eb4a9ef2..9743a1ae5 100644 --- a/apps/drivers/px4fmu/fmu.cpp +++ b/apps/drivers/px4fmu/fmu.cpp @@ -382,8 +382,8 @@ PX4FMU::task_main() /* get new value */ orb_copy(ORB_ID(actuator_armed), _t_armed, &aa); - /* update PWM servo armed status */ - up_pwm_servo_arm(aa.armed); + /* update PWM servo armed status if armed and not locked down */ + up_pwm_servo_arm((aa.armed && !aa.lockdown); } } |