705 Commits

Author SHA1 Message Date
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
Julian Oes
32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Julian Oes
699b08c9fd commander: move battery warning
The battery warning is not consumed anywhere, therefore scrap it from
the vehicle_status message.
2016-04-11 18:01:47 +02:00
Julian Oes
5f3a23a253 commander: remove circuit breakers from status msg
Since the circuit breaker bools are not actually used anywhere else than
in the commander, it is safe to remove them and replace them with local
bools.
2016-04-11 18:01:47 +02:00
Lorenz Meier
8b876e6497 MAVLink command feedback: Do only report command status and not additional string 2016-04-10 11:15:18 -07:00
Lorenz Meier
ad3ca2a9d2 Commander: Indicate low battery 2016-04-10 10:57:38 -07:00
Julian Oes
7352dc6f2e commander: workaround to wait 1s before param save
Without this wait, we end up saving the old parameters on Snapdragon.
2016-04-05 13:02:53 +02:00
Julian Oes
f4f1f5f027 commander: raise stack of low prio thread
The accel calibration sometimes lead to a crash. Raising the stack size
resolved the issue.
2016-04-01 15:12:08 +02:00
Lorenz Meier
3981f06d42 Reject arming timeout 2016-03-29 22:42:57 +02:00
Julian Oes
f718c25dbe commander: remove QURT workaround
Timestamps didn't exist when commander was run on the Linux side.
However, commander is now always run on the QURT side, so the hack is no
longer needed.
2016-03-27 12:40:10 +02:00
Jimmy Johnson
bbc8eaefd7 Adding new follow target navigation and main states. New follow target
topic added. New follow fsm added to the navigator
2016-03-27 12:10:57 +02:00
Julian Oes
bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Lorenz Meier
d81d0c21ed More debug output in commander shell 2016-03-13 19:49:18 +01:00
Lorenz Meier
36a8f3f45a Commander: Ignore speed commands 2016-03-13 18:09:04 +01:00
Daniel Agar
31a975e501 VEHICLE_CMD_DO_SET_MODE missing RATTITUDE 2016-03-13 17:44:55 +01:00
Lorenz Meier
1fdf252e96 Remove duplicate LAND mode, clean up mode reporting across the board to ensure consistency 2016-03-13 15:39:35 +01:00
Lorenz Meier
c198388dd5 Use new data for mode changes 2016-03-12 16:36:04 +01:00
Daniel Agar
f944ac7e26 commander add mode argument 2016-03-12 12:23:31 +01:00
Andreas Antener
55e1259f59 prevent vtol from entering ACRO (temporary) 2016-03-10 21:43:47 +01:00
Lorenz Meier
2e63cfbcfc Do not check for RC map 2016-03-06 17:55:45 +01:00
Lorenz Meier
8a91ce65e8 Ensure RC switches get evaluated on first run 2016-03-06 14:56:25 +01:00
Lorenz Meier
82a390c125 Commander: Better user feedback for kill switch 2016-03-06 12:48:28 +01:00
Lorenz Meier
74694e3c77 Commander: Support fallback strategies for rejected control modes 2016-03-06 12:34:31 +01:00
Lorenz Meier
ffd24e8cf0 Commander: Support single channeel flight mode selection 2016-03-05 20:41:02 +01:00
Lorenz Meier
94353a9d40 Commander: Allow arming in MANUAL, STAB, ACRO, ALTCTL 2016-02-25 14:12:08 +01:00
Lorenz Meier
c8492454e9 commander: Support enabling and disabling lockdown 2016-02-23 13:09:06 +01:00
Lorenz Meier
5dfd9dd68b Add a test command from commander 2016-02-23 13:09:06 +01:00
Lorenz Meier
04ae52447e Commander: Ignore trigger commands 2016-02-23 09:25:29 +01:00
jwilson
75fad09263 Fixed problem causing a failure to obtain the shared memory lock on the AppsProc. 2016-02-19 16:59:49 +01:00
jwilson
d84639f8c4 This code is flyable, but a few problems exist which cause values in the .config files to be overwritten by the defaults in the .XML file. 2016-02-19 16:59:49 +01:00
jwilson
8cc37db595 Removing unneeded debug statements. 2016-02-19 16:59:49 +01:00
jwilson
9f173b5659 Debug statements included in the code. 2016-02-19 16:59:49 +01:00
jwilson
39daea103b Removing unneeded debug statements. 2016-02-19 16:59:49 +01:00
jwilson
2b4b9aa103 Debug statements included in the code. 2016-02-19 16:59:49 +01:00
Julian Oes
341004f460 commander: added some comments 2016-02-19 16:59:48 +01:00
Julian Oes
951b97baac commander: small comment fix 2016-02-19 16:59:48 +01:00
Mark Charlebois
d56459bd17 Backed out bad merge change in commander.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois
3e2555f590 Backed out commented out line
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois
473fe773b4 Provide impelmentation of px4muorb_KraitRpcWrapper
The Terminate function is not properly implemented yet.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois
42baeeb999 Merge fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:44 +01:00
Mark Charlebois
014f15d8b0 Rebase changes on upstream master
This brings in many of the changes from the PX4 fork on ATLFLight.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois
d079c1a33e Backed out bad merge change in commander.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois
8a1335dbd9 Backed out commented out line
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois
01d0543e0a Provide impelmentation of px4muorb_KraitRpcWrapper
The Terminate function is not properly implemented yet.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois
7389ea7648 Merge fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois
9f3bf8e9f4 Rebase changes on upstream master
This brings in many of the changes from the PX4 fork on ATLFLight.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Andreas Antener
eb5b8a32ee transition alignment will force heading now and go to RTL if it cannot reach it in time, handle mission failure correctly, reset after mission update, issue message with actual problem 2016-02-15 23:29:38 +01:00