Commit Graph

36 Commits

Author SHA1 Message Date
Andrew Wilkins cdc717be53 Speed reset when switching flight modes (#21414)
* speed reset between flight modes

* no whitespace
2023-04-27 17:32:43 +02:00
Silvan Fuhrer 5ea8c6e507 FlightTaskAuto: remove unused _getTargetVelocityXY()
Inclusive velocity_valid field in position_setpoint message that's then
no longer needed.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-10-17 16:12:15 -04:00
Julian Oes 6021b8efb3 navigator: only apply breaking for multirotors 2022-02-22 09:41:22 -05:00
Julian Oes fa6c051ae5 navigator: break smoothly when entering hold mode
This uses the existing breaking functionality when hold/loiter mode is
activated.
2022-02-22 09:41:22 -05:00
RomanBapst bf6a47ba6a navigator: cleanup of set_loiter_item
Unwraps the set_loiter_item() to solve the issue where the altitdue setpoint
in a MC takeoff wasn't correctly used.

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2021-10-27 11:01:13 +03:00
Daniel Agar 97fc1db768 vehicle_local_position: rename yaw -> heading and add reset logic
- vehicle_global_position yaw removed (redundant)
2020-08-10 11:42:03 +02:00
Dennis Mannhart f0140a6290 loiter: remove yaw_mode param and logic 2018-08-03 08:24:34 +02:00
Beat Küng f2dddc65a5 navigator: use new Param class 2018-03-13 17:35:15 +01:00
Daniel Agar 25c7a03a8b Navigator remove unnecessary calls to updateParams
- the SuperBlock already does this
2018-01-14 12:53:53 +01:00
Daniel Agar f87402b16c navigator remove redundant param updates 2018-01-04 09:21:17 +01:00
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
Nacho Carnicero e6670d7926 Drone yaw set to destination waypoint yaw in LOITER mode if MIS_YAWMODE=0 (#7269)
* Drone does not change orientation while in LOITER mode if MIS_YAWMODE=0

* Fix code style

* Some more code style fixes

* Format checks passed
2017-06-04 20:01:40 +08:00
Julian Oes 1424994bc0 navigator: don't takeoff in loiter on ground
This fixes the following corner case:
1. Upload a mission.
2. Set mission mode.
3. Set loiter mode.
4. Arm.
At this point it will shoot up and go to the takeoff waypoint even
though we're not in mission but in loiter mode.

The fix makes sure that the triplet is reset to invalid (and idle) in
loiter mode if we're landed and disarmed.
It will lead to the vehcle sit in idle on the ground until you issue a
start mission (or takeoff) command.
2016-12-08 15:07:14 +01:00
Daniel Agar 6f10f8de9a navigator begin fixing code style 2016-11-19 15:16:00 +01:00
Lorenz Meier 8960ab3402 Navigator: differentiate between takeoff and reposition commands, perform calculations for repositions only when armed. 2016-05-10 13:58:42 +02:00
Lorenz Meier e1e15add01 Reposition: Do not yaw for small dispsplacements 2016-05-03 13:35:53 +02:00
Lorenz Meier a4ad826958 Loiter: Face travel direction when performing reposition 2016-05-03 13:16:19 +02:00
Lorenz Meier 2244ff167f Navigator: execute on reposition commands 2016-04-24 11:54:20 +02:00
Lorenz Meier 05aae9410c Navigator: Handle reposition commands. Untested 2016-04-23 20:12:11 +02:00
Lorenz Meier 88b2349241 Code style fixes 2016-03-27 12:10:57 +02:00
Jimmy Johnson 8829db8844 code clean up complete 2016-03-27 12:10:57 +02:00
Jimmy Johnson 26cb645ee0 follow me working 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 cab895004d Navigator: DDifferentiatee between min loiter alt and min takeoff alt. Reduce both by default 2016-03-14 09:05:22 +01:00
Lorenz Meier 05993bee6f Navigator: Provide better feedback if no mission present, enforce minimum altitude in loiter and in auto modes 2015-06-12 15:57:27 +02:00
Thomas Gubler 2d124852c1 propagate uorb contants change through all modules/drivers 2015-01-28 16:31:41 +01:00
Anton Babushkin 0bf9c2a9b2 navigator: API changes, reparing to move manual modes to navigator, WIP 2014-06-29 14:09:22 +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 c5a5604ae9 navigator: loiter fixes 2014-06-26 00:17:25 +02:00
Anton Babushkin e14d475142 navigator: update Loiter navigator mode to use new method names 2014-06-13 14:31:19 +02:00
Julian Oes d78c3a2242 navigator: new class structure, loiter and mission working 2014-06-06 17:17:41 +02:00
Julian Oes 7af1103bf3 navigator: mission and loiter working now 2014-06-06 00:55:18 +02:00