From e0e96c005aab8b35f68ea3def75f5e762a115d32 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 6 Nov 2012 18:57:42 -0800 Subject: [PATCH] Corrected two small bugs considering arming and disarming --- apps/drivers/px4io/px4io.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index 4687df2aa0..0ec1b9922f 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -37,7 +37,6 @@ * * PX4IO is connected via serial (or possibly some other interface at a later * point). - */ #include @@ -384,7 +383,7 @@ PX4IO::task_main() if (fds[2].revents & POLLIN) { - orb_copy(ORB_ID(actuator_armed), _t_armed, &_controls); + orb_copy(ORB_ID(actuator_armed), _t_armed, &_armed); _send_needed = true; } } @@ -538,7 +537,7 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg) case PWM_SERVO_DISARM: /* fake a disarmed transition */ - _armed.armed = true; + _armed.armed = false; _send_needed = true; break;