138 Commits

Author SHA1 Message Date
Lorenz Meier
42e9c84d50 Merge branch 'master' of github.com:PX4/Firmware into ekf_params 2014-04-22 01:40:27 +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
Lorenz Meier
0a89364e3c Merge branch 'ArmDisarm' of github.com:DonLakeFlyer/Firmware into ekf_params 2014-04-21 11:23:35 +02:00
Lorenz Meier
46a796fb86 Added home position switch on GPS position - gives a more reliable home position setup 2014-04-20 03:04:56 +02: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
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
Julian Oes
66527eea02 commander: workaround to prevent RC loss in HIL 2014-03-27 17:54:29 +01: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
Anton Babushkin
0ead560059 commander: tunes cleanup and fixes 2014-02-11 18:24:20 +01:00
Anton Babushkin
0613b299c0 commander: play warning tune (as for low battery) when in failsafe state 2014-02-11 16:35:05 +01:00
Anton Babushkin
855944fb2e commander: beeps and blinks cleanup 2014-02-11 16:35:05 +01:00
Lorenz Meier
97c5daf924 Merge branch 'master' into beta 2014-02-04 15:34:35 +01:00
Lorenz Meier
243a28ff8b Do not send an error message for RX pairing commands 2014-02-01 23:13:41 +01:00
Lorenz Meier
020e7dcae3 Merged master into beta 2014-02-01 19:13:13 +01:00
Lorenz Meier
dd7c198268 Merged master into beta 2014-02-01 19:03:45 +01:00
Lorenz Meier
14bbecfd7a Hotfix: Check all channel mappings for valid ranges 2014-02-01 18:59:26 +01:00
Thomas Gubler
48f777d071 commander sets vstatus.condition_landed = false for fw systems (until we have a landing detector): solves multiple issues with the state machine in the navigator app 2014-02-01 13:54:39 +01:00
Lorenz Meier
c1d1d67534 Improved RC calibration behaviour, fully supported setting trim offsets 2014-02-01 13:22:52 +01:00
Anton Babushkin
8897894b19 commander, navigator, mc_att_control, mc_pos_control: code style fixed 2014-02-01 11:14:21 +01:00
Anton Babushkin
7274c0ce30 Merge branch 'master' into beta 2014-01-30 23:07:28 +01:00
Lorenz Meier
8d79d91950 Revert "Merge pull request #620 from pigeonhunter/stack_sizes"
This reverts commit 3b31a6b1b9756eb191eaaafb1c137e6874079281, reversing
changes made to 70afb3ca3b3f1844241c9c9312579bbb2475232c.
2014-01-30 21:54:29 +01:00
Anton Babushkin
f64872b9b3 Merge branch 'master' into beta 2014-01-30 17:23:10 +01:00
Lorenz Meier
ff753b9e24 Merged master into lockdown_disable 2014-01-30 10:00:01 +01:00
Anton Babushkin
6a1a29f77e global_position topic: added baro_alt, mc_pos_control: SEATBELT mode fixed, use baro/AMSL alt 2014-01-28 20:40:05 +01:00
Darryl Taylor
0488d5b41c Reduced commander main task stack size to 2088. The high-water-mark measured at 1668 after calibration and flight. 25% safety margin, but commander is fairly complex. There are surely untested code paths here, but each is relatively shallow. 2014-01-28 10:43:33 +08:00
Darryl Taylor
d1fb765187 Reduced low priority thread stack size to 1728. Top indicates the high-water-mark is at 1380 during accelerometer calibration. Safety margin ~25% 2014-01-28 10:30:16 +08:00
Anton Babushkin
d1508a7813 vehicle_control_mode publication moved to commander, WIP 2014-01-27 20:49:17 +01:00
Anton Babushkin
20108ed95d commander: minor refactoring current_status -> status 2014-01-27 13:18:54 +01:00
Anton Babushkin
9e9105048a commander, navigator: failsafe fixes, mavlink messages cleanup 2014-01-26 15:46:14 +01:00
Anton Babushkin
c841929e3f commander: «home position set» condition fixed, failsafe fixes, navigator: state indication bugfix, control_mode fixes 2014-01-26 14:12:27 +01:00
Anton Babushkin
7d2efe9367 commander, navigator: minor cleanup (refactoring), code style fixed 2014-01-26 11:52:33 +01:00
Anton Babushkin
c7f0553938 cammander: state machine can now deny current state (e.g. when position lock lost during EASY mode), added FAILSAFE_STATE_LAND 2014-01-26 11:50:34 +01:00
Anton Babushkin
92ddf7903b commander: more user-friendly states indication 2014-01-25 23:37:26 +01:00
Anton Babushkin
ebc7cb03b7 «flighttermination state» replaced by more general «failsafe state» 2014-01-25 23:24:12 +01:00
Anton Babushkin
58792c5ca6 Use double for lat/lon in vehicle_global_position topic, use filed names lat, lon, alt, vel_n, vel_e, vel_d for global positions 2014-01-24 00:06:10 +01:00
Anton Babushkin
eb9fd154fe commander: more robust RC failsafe, but still hotfix, needs to be rewritten 2014-01-21 15:26:51 +01:00
Anton Babushkin
b175937b5f navigator, commander: RTL and RC failsafe fixes 2014-01-18 14:25:24 +01:00