Julian Oes
314ee6b7e0
commander: remove some if confusion
...
This is a try to simplify the if statements a bit. Also, a check of
new_arming_state which was impossible, is removed.
2016-07-13 10:10:45 +02:00
Julian Oes
91127d51c0
commander: stay in failsafe even when landed
...
If the failsafe state is ended when landed, we would switch back to
POSCTL and therefore take off again, however, all we want is stay on
ground and wait for the auto disarm.
2016-06-21 10:21:34 +02:00
dong.chen
5ad671ed4c
Solve the problem When lost rc signal, it will rtl repeated.
2016-06-21 10:21:34 +02:00
Julian Oes
c7ec07be70
commander: properly use new param
...
The param COM_ARM_WO_GPS is set to 1 by default to allow arming without
GPS. This then sets a bool arm_without_gps which translates to
!GNSS_check in preflightCheck.
2016-06-21 10:21:34 +02:00
Julian Oes
f67e74935e
commander: remove leftover printf
2016-06-21 10:21:34 +02:00
Julian Oes
ef04085ac5
commander: go to ALTCTL if GPS is lost in POSCTL
...
Previously, we renained in POSCTL and would drift away if GPS was lost.
2016-06-21 10:21:34 +02:00
Julian Oes
d0355cef1f
Revert "commander/navigator: remove param NAV_RCL_ACT"
...
This reverts commit 77ea4cebf41cd106fe771b9eb469aa2326339467.
2016-06-21 10:21:34 +02:00
Julian Oes
016d514d80
commander/navigator: remove param NAV_RCL_ACT
...
The param NAV_RCL_ACT was not implemented as described. Also, it has the
completely the wrong name. It should be a COM param and not NAV.
Therefore, remove the param and delete the partly implemented
and probably never used functionality.
2016-06-21 10:21:34 +02:00
Julian Oes
fe29d99d62
commander: use the gps_failure flag
...
The gps_failure flag had been ignored in some navigation states.
2016-06-21 10:21:34 +02:00
Julian Oes
4d10759699
commander: use DESCEND mode and not LANDGPSFAIL
...
Always use the DESCEND mode and not LANDGPSFAIL because LANDGPSFAIL will
try to loiter for some time and then request termination instead of
descending gently and trying to land.
2016-06-21 10:21:34 +02:00
Andreas Antener
095997ca59
changed order of arguments for readability
2016-06-20 19:03:10 +02:00
Andreas Antener
ced8376268
added offboard lost actions with additional timeout
2016-06-20 19:03:09 +02:00
Daniel Agar
4ab8ddec53
rename cb_usb -> circuit_breaker_engaged_usb_check
2016-06-15 20:35:16 +02:00
Lorenz Meier
7398164fcc
Updated PX4 use / API of low level GPIO and other hardware-centric system facilities
2016-05-28 14:56:17 +02:00
Daniel Agar
51298c1eb1
remove unused
2016-05-13 13:01:42 +02:00
Daniel Agar
008354f935
testing cleanup
2016-05-13 13:01:41 +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
Julian Oes
c9ac9c7dbd
commander: fixes after rebase
2016-04-11 18:01:49 +02:00
Julian Oes
3c9f9540dc
commander: add failsafe flag back in
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
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
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
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
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
ad3ca2a9d2
Commander: Indicate low battery
2016-04-10 10:57:38 -07:00
Lorenz Meier
e3d6bad3fe
Revert "report sensor init failure"
...
This reverts commit 407f467b456a393a891a936c79cc90e64e52fd45.
2016-04-10 10:37:03 -07:00
Lorenz Meier
b66967a8a5
Revert "add low battery warning and comment out the "resolved" messages"
...
This reverts commit 221e259d01b32f23d14270af78d0996b728bf9d1.
2016-04-10 10:36:48 -07:00
Mark Whitehorn
817c0eafbc
add low battery warning and comment out the "resolved" messages
2016-04-05 19:13:49 -07:00
Mark Whitehorn
b4520f538e
report sensor init failure
2016-04-05 19:13:49 -07:00
Felix Hu
bd580e09bf
supports MindPXv2 borad which is a product from AirMind.
2016-03-30 19:45:39 +02:00
Jimmy Johnson
38c40d5601
fixing var change after rebase, setting min mission takeoff altitude to 10m for safety
2016-03-27 12:10:57 +02:00
Jimmy Johnson
dfc2d9b5e0
more clean up
2016-03-27 12:10:57 +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
1fdf252e96
Remove duplicate LAND mode, clean up mode reporting across the board to ensure consistency
2016-03-13 15:39:35 +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
sander
d5eae460c0
VTOL transition failsafe RTL
2016-02-10 16:30:57 +01:00
Lorenz Meier
19b81b9ab2
Commander: Rate-limit preflight check
2016-01-22 11:31:39 +01:00
Andreas Antener
fbf42c8949
added auto takeoff support, updated configuration for solo and generalized landing mission items
2015-12-28 15:21:50 +01:00
Lorenz Meier
e715610887
Be more forgiving on avionics power voltage
2015-12-07 11:41:01 +01:00
Lorenz Meier
a242c0ff6d
Commander: Add takeoff command handler. Do not check RC config in SITL RC mode
2015-11-20 11:15:17 +01:00
Lorenz Meier
75e962ee7c
Merged master into driver_framework
2015-11-20 09:14:37 +01:00
Mark Charlebois
34410e7ce4
Changes for updated DriverFramework
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 19:03:10 -08:00
Lorenz Meier
7a5391a723
Commander: Fix preflight check reporting and simplify logic
2015-11-19 18:28:16 +01:00
Lorenz Meier
f2b988dcaa
Fix error reporting logic
2015-11-19 17:48:39 +01:00
Lorenz Meier
173edcef63
Commander: Fix reporting in presence of no telemetry link
2015-11-19 16:33:56 +01:00
Lorenz Meier
092a51426f
Build fix and airspeed console cal
2015-11-17 12:59:45 +01:00