167 Commits

Author SHA1 Message Date
Lorenz Meier
8dd0453edc Merge pull request #909 from PX4/failsafe_reporting
Much better failsafe reporting on failsafe state changes
2014-05-07 02:10:53 -07:00
Lorenz Meier
0c318f9ad7 commander: Fix the position failsafe to a) use proper logic to determine if eph / epv are good or not (the previous logic was in some states not initialized) and b) add a hysteresis time - because the check as it was before had zero hysteresis time for a bad eph / epv value 2014-05-07 08:42:57 +02:00
Lorenz Meier
32b84b9652 Much better failsafe reporting on failsafe state changes 2014-05-06 21:46:59 +02:00
Lorenz Meier
1d6b9fae03 Fix in-air restarts, protect against an external MAVLink sender exploiting the restart mechanism 2014-05-06 14:57:06 +02:00
Lorenz Meier
e6d332aa7c Make commander less pedantic about position status 2014-04-27 15:50:53 +02:00
Lorenz Meier
c74248c8b1 Merged mpc_rc with master 2014-04-27 15:45:33 +02:00
Lorenz Meier
4a949a9565 Merge pull request #749 from DonLakeFlyer/ArmDisarm
Arm/Disarm duplication removal and support for Disarm in VEHICLE_CMD_COMPONENT_ARM_DISARM
2014-04-26 12:24:42 +02:00
Anton Babushkin
2453b354fa Failsafe landing without position control fixed 2014-04-25 22:26:51 +02:00
Anton Babushkin
22aaae197b Merge branch 'rc_timeout' into mpc_rc 2014-04-24 22:40:46 +02:00
Anton Babushkin
63c50676f9 MISSION switch renamed to LOITER 2014-04-24 22:38:19 +02:00
Anton Babushkin
db474072a7 Merge branch 'rc_timeout' into mpc_rc 2014-04-23 19:03:03 +02:00
Anton Babushkin
56592ec77d commander: don't start RTL on failsafe if landed 2014-04-23 19:01:05 +02:00
Anton Babushkin
2998685a3a Merge branch 'mpc_local_pos' into mpc_rc 2014-04-23 14:22:52 +02:00
Anton Babushkin
e4a4430f9f Merge branch 'master' into rc_timeout 2014-04-22 11:18:07 +02:00
Anton Babushkin
302233a34f Merge branch 'master' into mpc_local_pos 2014-04-22 11:13:11 +02:00
Lorenz Meier
a0c9227044 commander: Also publish battery status in HIL, since we have a fake battery available and the system freaks out without knowing its main supply 2014-04-22 01:38:15 +02:00
Anton Babushkin
8634780e80 Merge branch 'master' into mpc_rc 2014-04-20 20:10:39 +02:00
Anton Babushkin
88149311ea Merge branch 'rc_timeout' into mpc_rc 2014-04-13 11:06:49 +04:00
Anton Babushkin
0b97dd2b77 commander: brackets added to return switch check 2014-04-09 18:55:55 +04:00
Thomas Gubler
bccdbde45e commander: handle_command: do not filter command if componentid == 0 2014-04-08 17:29:11 +02:00
Thomas Gubler
a6215b7bda commander: handle_command: filter commands by sysid and componentid 2014-04-08 17:10:22 +02:00
Don Gagne
c1545bd237 Fix float equality comparison
Also restructured incorrect return statement
2014-04-07 18:56:03 -07:00
Julian Oes
fc2bfb828f Merge remote-tracking branch 'px4/master' into mavlink_broadcast 2014-04-07 21:45:45 +02:00
Julian Oes
a4a12dab33 commander: put unsupported warning back in place 2014-04-07 21:42:19 +02:00
Anton Babushkin
dfd9601b57 commander: minor comment fix 2014-04-07 17:24:39 +04:00
Anton Babushkin
b770c9fc1e position_estimator_inav: increase acceptable EPH/EPV, in commander use EPH/EPV to decide if global position valid 2014-04-07 17:16:43 +04:00
Anton Babushkin
a4ba705e2f commander: don't use mode switch if it's not mapped 2014-04-06 20:04:18 +04:00
Anton Babushkin
97cde3311e commander: home publication fixed 2014-04-05 16:59:01 +04:00
Anton Babushkin
0b45e01db9 Merge branch 'failsafe_sbus_cleanup' into rc_timeout 2014-04-05 15:29:46 +04:00
Anton Babushkin
f12c765383 Merge branch 'master' into mpc_local_pos 2014-04-04 20:36:11 +04:00
Lorenz Meier
88cf841f00 Bump RC timeout for all cases to half a second 2014-04-04 18:18:17 +02:00
Julian Oes
ed7b97c020 commander: don't beep if message is not understood 2014-04-03 21:13:03 +02:00
Anton Babushkin
6f38ed3b4b commander, navigator: use updated manual_control_setpoint 2014-04-03 20:23:34 +04:00
Anton Babushkin
367ce63b86 'signal_lost' flag added to manual_control_setpoint and rc_channels topics to indicate signal loss immediately 2014-04-03 11:45:57 +04:00
Anton Babushkin
93617c4073 commander: set home position on arming only if at least 2 s from commander start spent 2014-04-02 17:09:18 +04:00
Anton Babushkin
553b122830 caommander: setting home position by command implemented 2014-04-02 16:53:22 +04:00
Anton Babushkin
b1d39e65a6 commander: position timeout increased to 30ms 2014-04-02 15:36:11 +04:00
Anton Babushkin
63cd319ff7 commander: set home position on arming 2014-04-02 11:57:41 +04:00
Anton Babushkin
a991ebd8ca Merge branch 'master' into mpc_local_pos 2014-03-28 10:44:28 +04:00
Julian Oes
66527eea02 commander: workaround to prevent RC loss in HIL 2014-03-27 17:54:29 +01:00
Anton Babushkin
83da4ae02d 'vehicle_global_position' topic updated: removed baro_alt and XXX_valid flags. 2014-03-27 00:27:11 +04:00
Don Gagne
783a240396 Function naming and remove unneeded sprintf 2014-03-17 11:01:15 -07:00
Don Gagne
dec13e7f21 Use single set of arm/disarm code
Set mode and arm/disarm commands now call a single method to arm
disarm, thus removing code duplication. Also calls updated
arming_state_transition method such that the arming state logic does
not need to be duplicated outside of arming_state_transition.
2014-03-16 21:38:23 -07:00
Anton Babushkin
b76e26c5e5 commander: allow arming with safety enabled in HIL mode 2014-03-03 21:24:59 +04:00
Anton Babushkin
3674aae4a7 commander: ignore battery voltage in HIL mode 2014-03-03 21:19:56 +04:00
julianoes
49fe131019 Merge pull request #674 from PX4/safety_disarm
commander: disarm system when safety enabled
2014-03-03 10:59:51 +01:00
julianoes
72ae4a6dc7 Merge pull request #653 from PX4/fs_beep
Beeps and LED blinks cleanup, beep on RC failsafe added
2014-03-03 10:11:33 +01:00
Anton Babushkin
8bc0287ecc commander: disarm system when safety enabled 2014-02-17 22:45:54 +04:00
Anton Babushkin
44c095b9e5 commander: allow arming from RC with safety enabled in HIL mode 2014-02-16 19:46:57 +01:00
Julian Oes
036ebdbe78 Commander: add guard for parachute deployment 2014-02-13 16:08:49 +01:00