mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 20:19:06 +08:00
Corrected two small bugs considering arming and disarming
This commit is contained in:
parent
3398820631
commit
e0e96c005a
@ -37,7 +37,6 @@
|
||||
*
|
||||
* PX4IO is connected via serial (or possibly some other interface at a later
|
||||
* point).
|
||||
|
||||
*/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user