Mark Whitehorn
8a77fec9c8
still need this workaround to avoid hardfault
2016-05-14 11:27:07 +02:00
Daniel Agar
76387b1693
uorb autogeneration
2016-05-14 11:27:07 +02:00
Lorenz Meier
7d66435546
Commander: Fix the takeoff and land commands. Fixes #4516
2016-05-13 22:05:46 +02:00
Daniel Agar
2bc74fd5d9
restore px4fmu-v2_test
2016-05-13 13:01:41 +02:00
Lorenz Meier
5fb1de906c
commander: Better reporting and convenience for commander
2016-05-13 11:39:40 +02:00
Lorenz Meier
8b41ddd224
Commander: Better status feedback
2016-05-13 11:03:18 +02:00
Julian Oes
a69393b191
commander: fix shadowing errors
2016-05-12 08:16:36 +02:00
Julian Oes
352d099249
commander: fix merge conflict mistake
2016-05-12 08:16:36 +02:00
Julian Oes
a94a409f5f
commander: got rid of leftover system_load
2016-05-12 08:16:36 +02:00
Jonathan Challinger
535cea4e77
commander: remove load from vehicle_status message
2016-05-12 08:16:36 +02:00
Lorenz Meier
befab7303f
Commander: Fix modes switching back to prev mode
2016-05-10 13:57:05 +02:00
Lorenz Meier
ffb0d37c8a
Commander: Fix reposition handling, run faster to allow catching of consecutive commands
2016-05-09 23:01:54 +02:00
Lorenz Meier
639a589233
Fix RTL abort detection on stick change
2016-05-05 16:55:04 +02:00
Daniel Agar
7aa6e85563
enable Wshadow
2016-05-05 13:32:42 +02:00
Lorenz Meier
a189130b52
Commander: Be less chatty on auto disarm
2016-05-01 14:22:34 +02:00
Lorenz Meier
109f88564d
Commander: Init land detector
2016-04-29 12:34:28 +02:00
Lorenz Meier
65d0d1f9e3
Commander: Allow better battery failsafe warning / actions
2016-04-27 14:40:56 +02:00
Lorenz Meier
2fff2d4eac
Robustify single mode selection. Fixes #4364
2016-04-26 09:11:35 +02:00
Lorenz Meier
55d18949bc
Commander: support finer granularity of data llink loss and RC loss actions
2016-04-25 08:44:51 +02:00
Lorenz Meier
588133e85d
Commander: Only change flight mode immediately if GCS requested it
2016-04-24 12:10:23 +02:00
Lorenz Meier
711053fd76
Commander: Switch flight mode so reposition commands can get applied
2016-04-23 20:12:27 +02:00
Lorenz Meier
c99ff66f75
Support disarming fixed wing if landed
2016-04-23 18:27:18 +02:00
Lorenz Meier
8955fdc0e1
Commander: Decouple land detection states
2016-04-23 15:47:59 +02:00
Lorenz Meier
50433c5eee
Commander: Better RTL output
2016-04-23 15:12:20 +02:00
Lorenz Meier
36e2bdf876
Commander: Support battery failsafe
2016-04-23 14:52:37 +02:00
Lorenz Meier
5b897e095a
Generalize RTL handling
2016-04-23 14:52:30 +02:00
Lorenz Meier
19f2a7bff0
Only publish battery if we can measure something, initialize battery topic in commander correctly
2016-04-23 14:29:25 +02:00
Benoit Landry
1b7319d2e5
adding the position control mode change for accel control back to the commander
2016-04-22 10:31:52 +02:00
Benoit Landry
95faba391a
accel control in pos controller
2016-04-22 10:31:52 +02:00
Benoit Landry
ce810542e2
simple NED acceleration control interface
2016-04-22 10:31:52 +02:00
Mark Whitehorn
37bd291446
fix regression which broke rattitude mode
2016-04-22 08:40:40 +02:00
Julian Oes
8e5091703c
commander: no message due to LED/buzzer not found
...
The LED init and Buzzer init messages were only annoying and not helpful
on Snapdragon and SITL. Therefore they are replaced with only developer
printfs.
2016-04-21 21:22:52 +02:00
Lorenz Meier
835ee4d709
Commander: Better status feedback about power status
2016-04-21 10:36:14 +02:00
Emmanuel Roussel
776c7f5d60
Updated commander to take free-fall into account
...
Added free-fall status in vehicle_status topic
2016-04-18 22:27:11 +02:00
Lorenz Meier
0adb4d8e8c
Commander: Fix single channel mode switching
2016-04-18 18:29:07 +02:00
stmoon
717c90eab4
enable commander hil option when hils mode
...
test for merge...
recover modification part
2016-04-18 11:10:02 +02:00
Lorenz Meier
f164500580
Commander: optimize text for voice output
2016-04-17 19:06:00 +02:00
Julian Oes
c9ac9c7dbd
commander: fixes after rebase
2016-04-11 18:01:49 +02:00
Julian Oes
974223bdd1
commander: pass battery status to preflight check
...
A low battery check was recently added to the preflight check, therefore
we need to pass on the information about the battery.
2016-04-11 18:01:49 +02:00
Julian Oes
e91f587438
commander; various compile fixes after rebase
2016-04-11 18:01:49 +02:00
Julian Oes
be2fe78c82
commander: publish internal state
2016-04-11 18:01:48 +02:00
Julian Oes
5ca5af5fcd
commander: take main_state out of vehicle_status
...
This state is only commander internal. Therefore it doesn't need to be
in vehicle_status. Instead it is now in the commander_state message.
2016-04-11 18:01:48 +02:00
Julian Oes
1ad0ee0fae
mc_att_control: don't use main state for RATTITUDE
...
Instead of the state use the boolean flags.
2016-04-11 18:01:48 +02:00
Julian Oes
70cff975cc
commander: move some flags out of vehicle_status
...
All the removed flags were not used anywhere else than inside the
commander.
2016-04-11 18:01:48 +02:00
Julian Oes
0988fef831
commander: forgot to close fd
2016-04-11 18:01:48 +02:00
Julian Oes
23df992cc5
commander: moved offboard bools into status_flags
...
The offboard status bools were not used anywhere but in the commander.
Therefore they are now moved to the local status_flags topic.
2016-04-11 18:01:48 +02:00
Julian Oes
1f44fb1efd
commander: internalize system status bools
...
Most condition bools in the commander are not used anywhere but in the
commander. It therefore makes sense to move them to a different internal
struct and remove them from the vehicle_status message.
Also, the land_detected should be used by all the modules instead of
getting it through the commander and system_status.
2016-04-11 18:01:47 +02:00
Julian Oes
141b984d5b
commander: take previous main state out of status
2016-04-11 18:01:47 +02:00
Julian Oes
181eb49da8
commander: remove calibration_enabled
...
This flag is not used anywhere, it therefore doesn't need to be in
vehicle_status.
2016-04-11 18:01:47 +02:00
Julian Oes
fe85841a1d
commander: remove counter
...
The counter variable in system status wasn't used anywhere.
2016-04-11 18:01:47 +02:00