Philipp Oettershagen
79f172eb92
Navigator: Fix fixed-wing first order altitude hold ( #9850 )
...
i.e. the altitude reference oscillations caused by it in LOITER mode
2018-07-15 23:54:08 -04:00
Daniel Agar
cf74166801
double promotion warning fix or ignore per module
2018-07-01 09:36:55 +00:00
Thomas Stastny
8551d2eb9d
mission feasibility: add small tolerance to fw landing slope alt
2018-06-29 12:10:53 +00:00
Daniel Agar
aa270fcd89
Mission feasibility: remove 2/3rds distance warnings that don't reject a mission ( #9743 )
2018-06-23 10:39:23 -04:00
Beat Küng
ff365cad08
rtl: change "RTL: land at home" message from critical to info
2018-06-15 15:53:28 +02:00
Oleg Kalachev
86d3603e2d
precland: fix landing target pose validity checking
...
In precland the copter may switch to horizontal approach state with an
old landing target pose message.
2018-06-13 23:32:51 -04:00
Florian Achermann
4697bf428b
Navigator Fix: Do not set the closest mission item in normal mission mode ( #9646 )
...
- fixes #9606
2018-06-12 12:11:14 -04:00
Daniel Agar
d73d20bcce
systemlib delete unused systemlib.h
2018-06-12 09:06:30 +02:00
Daniel Agar
d0bde9ab2a
replace geo _wrap_pi with matrix::wrap_pi
2018-06-12 09:00:52 +02:00
Florian Achermann
84578748f4
Navigator Mission RTL ( #8749 )
...
* Add return to land to mission
This method uses the planned mission for rtl. If a landing sequence
is present it will continue the mission and land. If not it will
fly back the mission and loiter/land at the home position.
2018-05-27 12:07:06 -04:00
Sander Smeets
04cc5c5611
Navigator: VTOL only apply acceptance radius calculation for FW part of back transition ( #9519 )
2018-05-23 19:46:36 -04:00
Daniel Agar
222a91c6be
mathlib delete Matrix, Quaternion, Vector
2018-05-23 17:27:09 -04:00
Julien Lecoeur
e380adb9b6
Fix format with Artistic Style 3.1
2018-05-15 10:38:49 -04:00
Beat Küng
c6b0d5c76a
navigator: don't complain 'Using minimum takeoff altitude' in case of numerical inaccuracies
...
Happend in SITL.
2018-05-09 07:59:46 +02:00
Beat Küng
258b1ea473
navigator: ensure result of strncpy is null-terminated
2018-05-09 07:59:46 +02:00
Hamish Willee
19032b91e3
Change RTL @group to Return Mode
2018-05-08 07:04:32 +02:00
Hamish Willee
66d4b495d4
Return params to reflect current mode names
2018-05-08 07:04:32 +02:00
Hamish Willee
09986237b6
Navigator failsafe action params to reflect current mode names
2018-05-08 07:04:32 +02:00
Hamish Willee
2c1eb443ca
Geofence failsafe action params to reflect current mode names
2018-05-08 07:04:32 +02:00
Daniel Agar
2e92484325
ecl update to latest master with separate libraries ( #9406 )
2018-05-03 23:48:09 -04:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
Oleg Kalachev
8d6bff08bb
precland: support receiving LANDING_TARGET message
2018-03-27 20:45:58 -04:00
Oleg Kalachev
5b030535c8
precland: fix incorrect converting microseconds to seconds
2018-03-27 20:45:58 -04:00
Oleg Kalachev
749a590c1c
precland: fix landing_target_pose subscription check
2018-03-27 20:45:58 -04:00
Oleg Kalachev
fef2e2ba82
precland: fix typos and code style
2018-03-27 20:45:58 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04:00
Daniel Agar
0ef5d892a1
navigator precland initialize all fields
...
- fixes coverity CID 264259
2018-03-24 13:39:31 -04:00
Daniel Agar
44e3bd6c1c
navigator follow_target move to matrix lib
2018-03-22 11:16:34 -04:00
Beat Küng
76aa044105
navigator mission: add yaw offset to vehicle's yaw for ROI cmds and disabled gimbal yaw
2018-03-19 09:42:41 +01:00
Beat Küng
a0372c6183
vmount: implement VEHICLE_CMD_DO_SET_ROI_WPNEXT_OFFSET
2018-03-19 09:42:41 +01:00
Beat Küng
aaa67632ca
navigator: remove redundant switch block for ROI handling
2018-03-19 09:42:41 +01:00
Beat Küng
89a775b401
navigator: remove use of final to allow extending class hierarchy
2018-03-13 17:35:15 +01:00
Beat Küng
e0af2912a1
navigator: avoid use of a static variable last_geofence_check
2018-03-13 17:35:15 +01:00
Beat Küng
320bdc6482
navigator: refactor to use ModuleBase class
2018-03-13 17:35:15 +01:00
Beat Küng
246be4f0ab
precland: use 'default' for destructor
2018-03-13 17:35:15 +01:00
Beat Küng
2e6904b8a4
navigator: use '#pragma once' as include guard
2018-03-13 17:35:15 +01:00
Beat Küng
f2dddc65a5
navigator: use new Param class
2018-03-13 17:35:15 +01:00
Beat Küng
0a5af01454
NavigatorMode: inherit from Block instead of SuperBlock
2018-03-13 17:35:15 +01:00
acfloria
fd0be3c412
Remove MavLink dependency in navigator
2018-03-09 21:16:28 +01:00
Julian Oes
9c6b1a0f04
navigator: fix incorrect takeoff altitude
...
This fixes a problem where we do not properly go to the set takeoff
altitude but end up lower.
The problem was that the setpoint triplet is reset when the navigation
mode changes. So in this case, the triplet is reset when we switch from
takeoff to loiter which can happen before reaching the actual takeoff
altitude.
The fix is an ugly hack to prevent the reset in the case of takeoff to
loiter. A better solution would be to remove the general reset and have
all navigation modes do the proper resets themselves.
This hotfix should however be lower risk.
2018-03-07 08:48:44 +01:00
Sander Smeets
2ef9c4ec35
VTOL force land even when transitioning to FW ( #8958 )
2018-03-01 16:51:50 -05:00
Vasily Evseenko
135162522a
Don't use ADSB messages with undefined fields in navigator ( #8900 )
...
Don't use ADSB messages with undefined fields in navigator
2018-02-18 11:08:40 +01:00
Julian Oes
cc36c8ee37
mission: warn at 2/3 of the max distance
...
This was wrong, instead of warning at 2/3 of the max distance as
mentioned in the comment, we would start to warn at 3/2 of the distance
which would then never actually happen.
2018-02-12 17:36:54 -05:00
Daniel Agar
6355eedd7a
move NAV_RC_LT into Mission group
2018-02-10 20:37:47 -05:00
Nicolas de Palezieux
bc3577bd60
mission_block: do relative alt correction for correct nav_cmd
2018-01-25 15:27:55 +01:00
DonLakeFlyer
342509b3ab
New ROI commands implementation
2018-01-25 15:27:55 +01:00
Lorenz Meier
d8164377a8
Navigator: Move mission param into mission params
...
This is important for the compile scope.
2018-01-22 15:56:42 +01:00
Nicolas de Palezieux
7ae3884944
heading towards ROI: do not require setting the MIS_YAWMODE param to enable multicopters yawing towards ROIs
...
ROI yaw control: configure yawing capability of mount in vmount parameters.
If configured that mount has no yaw control, vehicle will yaw towards ROI, irrespective of MIS_YAWMODE.
Vehicle will behave according to MIS_YAWMODE when there is no ROI.
2018-01-22 15:56:42 +01:00
Nicolas de Palezieux
bedaafcc20
NAV_CMD_DO_SET_ROI: handle relative altitude in mission ROI commands
2018-01-22 15:56:42 +01:00