Commit Graph

64 Commits

Author SHA1 Message Date
Daniel Agar 4416c4ddb3 navigator move parameters out of MissionBlock
- MissionBlock is an interface with > 10 implementations
2017-10-26 22:43:53 +02:00
Dennis Mannhart 8a0a8e20e1 mc_pos_control: use correct altitude as limit
fadfdasf
2017-10-10 10:28:07 +02:00
Dennis Mannhart f9b8afc006 Navigator: Use maximum flight altitude to limit missions
This change limits all mission items to the maximum flight altitude. The mission will still be executed and flown,
but the vehicle will never exceed the mission altitude. This ensures the vehicle can always reach the mission
items. Wether or not the entire mission should be rejected if it falls outside of the fenced area is enforced
in the mission feasibility checker function.
2017-10-10 10:28:07 +02:00
Daniel Agar 3c18be387c ROI - move handling to navigator (#7939) 2017-09-26 12:25:02 -04:00
Daniel Agar e0aa2e2391 RTL reduce verbosity 2017-07-08 21:54:04 +02:00
Daniel Agar fbebec5d0f navigator log RTL messages and don't print global timeout 2017-07-08 21:54:04 +02:00
Lorenz Meier d5c923c7ef Navigator: Fix RTL backtransition for VTOL
A recent change removed the command forwarding required for VTOL transitions. This change brings this back.

Partially reverts https://github.com/PX4/Firmware/pull/7249
2017-06-15 08:27:23 +02:00
Lorenz Meier 9be5193965 Navigator: Fix RTL command lnd logic for missions
The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.
2017-05-16 08:40:53 +02:00
Daniel Agar 56b028148b Navigator move get_time_inside and cleanup (#7062) 2017-04-20 11:24:55 -04:00
Lorenz Meier f70b4ef883 Navigator: Fix RTL state handling by enabling auto-continue after descend 2017-04-14 10:02:31 +02:00
Lorenz Meier 85b074f8d8 Navigator: Fix RTL state sequence 2017-04-10 23:34:35 +02:00
Lorenz Meier f74d6e443e Navigator: Initialize RTL state properly 2017-04-08 07:58:37 +02:00
Dennis Mannhart 1774e01c00 rtl: keep rtl altitude below max altitude
land_detector: delete unused class enum
2017-02-27 22:54:19 +01:00
Lorenz Meier 7710b64d27 Navigator: Re-initialize RTL every time it gets re-enabled 2017-02-26 13:26:52 +01:00
Lorenz Meier ad3d0391ab Navigator: Only update params as they change 2017-02-25 11:04:52 +01:00
Lorenz Meier d66d7a4932 Navigator: Fix code style 2017-02-17 09:13:13 +01:00
Lorenz Meier c8fb21e73e Navigator: Enforce a minimum altitude for RTL 2017-02-17 09:13:13 +01:00
Lorenz Meier 16dfd4c6ff Navigator: Header cleanup 2016-12-27 21:00:51 +01:00
Daniel Agar 6f10f8de9a navigator begin fixing code style 2016-11-19 15:16:00 +01:00
Lorenz Meier 05bc9acfb7 navigator: Wrap get time inside into function call and set time inside to zero
This ensures that the dual-use of the pitch_min / time_inside field is handled
properly between takeoff and non-takeoff items. Flight tested in SITL.
2016-10-23 16:26:03 +02:00
Lorenz Meier eaae1abdaf Simplify use of pitch_min 2016-10-23 16:26:03 +02:00
Lorenz Meier 9821499113 navigator / mission item: Compress fields into bitfield 2016-10-23 16:26:03 +02:00
Lorenz Meier 86a5244bc9 RTL: Set RTL messages to info so they do not distract the user from the actual operation 2016-05-10 12:40:59 +02:00
Lorenz Meier 268b2e3546 Improve yaw behaviour in RTL 2016-04-23 15:47:00 +02:00
Lorenz Meier 5569d5444b Fix incorrect use of constant 2016-04-21 10:02:52 +02:00
sander 3307c71e6d Additional yaw handling on land 2016-04-21 09:32:33 +02:00
sander e2812e34f8 Restore yaw orientation on RTL descend 2016-04-21 09:32:33 +02:00
sander f5d3871b9c Fix RTL vtol back transition 2016-04-21 09:32:33 +02:00
Andreas Antener e42206fc61 use waypoint type for RTL descent phase 2016-04-21 09:32:33 +02:00
Andreas Antener f224375641 VTOL: transition to MC before descent in RTL 2016-04-21 09:32:33 +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 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
Andreas Antener 4847023cad reset current setpoint when entering RTL 2016-03-19 19:30:09 +04: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 85fcfed083 Add missing yaw entries 2015-10-31 20:17:13 +01:00
Lorenz Meier 5394c661c7 Navigator: Fix RTL to return in a straight line 2015-10-31 19:04:12 +01:00
Lorenz Meier 5759358da9 Navigator: Use yaw of home position 2015-10-27 09:59:09 +01:00
Lorenz Meier 51293ad554 navigator: Adjust to uORB mission changes 2015-08-20 11:07:40 +02:00
Lorenz Meier b3ed0cf36b Navigator: be more verbose about RTL 2015-05-11 09:37:42 +02:00
Lorenz Meier 4b34221614 navigator: Get rid of audio tag in strings and use appropriate priority to get audio out when needed in the GCS 2015-04-14 13:25:49 +02:00
Thomas Gubler 5406ba78a8 make navigator mode a child of navigator 2014-08-15 20:53:03 +02:00
Anton Babushkin 904cfd7c49 Merge branch 'master' into navigator_rewrite_drton 2014-07-04 15:28:02 +02:00
Lorenz Meier 20de2da032 Navigator: Warning fixes 2014-06-30 12:20:23 +02:00
Anton Babushkin adf230ce4e navigator: more API changes, duplicate code removed 2014-06-29 15:35:34 +02:00
Anton Babushkin 456e628e12 navigator: NavigatorMode and MissionBlock API cleanup 2014-06-28 00:54:27 +02:00
Anton Babushkin affc312411 navigator: make MissionBlock subclass of NavigatorMode 2014-06-27 11:34:19 +02:00
Anton Babushkin 52eb49ba0b navigator: use common "acceptance radius" parameter for all modes 2014-06-27 11:09:49 +02:00
Anton Babushkin 9ae44291b1 navigator: added NAV_CMD_IDLE, added RTL_STATE_LOITER and RTL_STATE_LANDED instead of FINISHED 2014-06-27 00:27:08 +02:00
Anton Babushkin 8e8798a522 navigator: spaces/tabs fixed, old commented code removed 2014-06-26 23:39:17 +02:00
Anton Babushkin 63e14c73ba navigator: don't reset RTL state on loiter 2014-06-26 12:18:19 +02:00