Beat Küng
258b1ea473
navigator: ensure result of strncpy is null-terminated
2018-05-09 07:59:46 +02:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04: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
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
f2dddc65a5
navigator: use new Param class
2018-03-13 17:35:15 +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
DonLakeFlyer
342509b3ab
New ROI commands implementation
2018-01-25 15:27:55 +01:00
Nicolas de Palezieux
aa4c6c038d
navigator : add support for precision landing
2018-01-15 10:27:23 +01:00
Daniel Agar
f49c061a3c
navigator fix mission_result increment and sign mismatch
2018-01-14 12:53:53 +01:00
Daniel Agar
916d6a15fd
Mission merge offboard + onboard and simplify
2018-01-14 12:53:53 +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
545f8c4452
RTL optionally use planned mission landing ( #8487 )
...
- adds new RTL_LAND_TYPE parameter
2018-01-04 23:42:01 -05:00
Daniel Agar
f87402b16c
navigator remove redundant param updates
2018-01-04 09:21:17 +01:00
Dennis Mannhart
a649bbebb7
commander: switch to hold or mission once takeoff is finished ( #8020 )
...
* add COM_TAKEOFF_ACT to optionally switch to mission after takeoff
2017-12-31 13:58:20 -05:00
Daniel Agar
6172315cf7
navigator mission_result fix increment sign
2017-12-20 17:05:25 +08:00
lamping7
63718bf27b
fix MISSION_ITEM REACHED message broadcast ( #8332 )
2017-12-10 02:30:58 -05:00
Nicolas de Palezieux
a6ae1fbcaa
vehicle command ROI: do not erroneously report command unsupported; handle VEHICLE_CMD_DO_SET_ROI and VEHICLE_CMD_NAV_ROI identically ( #8377 )
2017-11-27 15:43:39 -05:00
Dennis Mannhart
05c00855c4
navigator: reset triplets if navigation mode changes ( #8285 )
2017-11-14 11:32:21 -05:00
Lorenz Meier
4028692bfe
Navigator: Limit string copy to length of target array
2017-11-13 09:59:54 +01:00
Lorenz Meier
a1a002f9b6
Navigator: Add the ability to do a low-altitude RTL to avoid traffic
...
This is a first baseline implementation for collision avoidance with aircraft equipped with transponders. Since the drone-to-drone and drone-to-airplane system will be regulated by a standard, we do carefully avoid to do anything too fancy. This implementation allows to reduce altitude to get close to ground and land immediately or RTL. This is similar to what a human pilot would do and allows to get out of manned airspace which is at higher altitudes.
2017-10-31 09:10:32 +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
bb9f8c3b44
navigator set cruising speed/throttle for reposition ( #8096 )
2017-10-11 10:30:03 -04:00
Daniel Agar
80dd87536e
navigator fix vehicle_command_ack (don't copy external)
2017-10-06 20:11:19 +02:00
Daniel Agar
3c18be387c
ROI - move handling to navigator ( #7939 )
2017-09-26 12:25:02 -04:00
Dennis Mannhart
5b03c5f68e
navigator: reset triplets during onboard/offboard mission update
2017-09-11 02:08:22 -07:00
Nicolas de Palezieux
a6ce2b320c
mission: add heading towards ROI mode for multicopters
2017-09-08 12:50:15 -04:00
Daniel Agar
7a42424411
Navigator resurrect FW GPS failure navigation ( #7762 )
2017-09-08 12:18:59 -04:00
José Roberto de Souza
c200d0e9a4
Keep initialization of outgoing vehicle_command_s consistent
...
All others are initialized this way.
2017-08-19 09:04:52 +02:00
José Roberto de Souza
925efe990d
Initialize all outgoing vehicle_command_ack_s and vehicle_command_s
...
This will initialize those structs with zero in all fields not set
and all fields set will only be change once to the final value not
wasting CPU time zeroing it.
This will guarantee that no non-unitialized structs will have
a trash value on from_external causing it to be sent to the
MAVLink channel without need it.
2017-08-08 21:46:30 +02:00
Beat Küng
3d3e6428c2
msg/geofence_update.msg: remove this topic
...
We'll use dataman to check for geofence data updates.
2017-08-04 18:08:51 +02:00
Beat Küng
401d6a1a6f
navigator status: print how many polygons there are currently loaded
2017-08-04 18:08:51 +02:00
Beat Küng
82716012bd
geofence_update.msg: notify navigator on geofence update
2017-08-04 18:08:51 +02:00
Beat Küng
328e84117e
navigator geofence: switch to new dataman data structure, support multiple polygons
...
This also removes the 'navigator fence <lon> <lat>' command to simplify
code (I don't think there's still use for that anymore). However the
file loading is still supported.
If goefence.txt does not exist, navigator will not clear the geofence
anymore on startup.
2017-08-04 18:08:51 +02:00
Lorenz Meier
60c96d9dd6
Navigator: Use default scheduling priorities
2017-08-02 21:18:35 +02:00
Daniel Agar
9fb5c4f0e9
navigator land abort use reposition ( #7574 )
2017-08-01 18:59:12 -04:00
Lorenz Meier
dbc7d805f2
Navigator: Fix pause mode to not continue to next waypoint if already set
2017-07-11 13:23:12 +02:00
Lorenz Meier
57a2ea0cd1
Navigator: Do not change target position if user is only changing altitude
...
This is important for multicopters for drift-free altitude changes and important for fixed wing to keep the current loiter center.
2017-07-10 18:36:03 +02:00
Daniel Agar
fbebec5d0f
navigator log RTL messages and don't print global timeout
2017-07-08 21:54:04 +02:00
Julian Oes
9854fc0d84
Set timestamp with vehicle commands
...
The vehicle_command uORB messages had the timestamp unset at 0.
2017-07-08 11:52: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
ChristophTobler
14f860090a
remove empty line and fix typo
2017-05-15 15:41:47 +02:00
Dennis Mannhart
9e383f2cd3
navigator: when landed only exit idle if mission/takoff
2017-05-15 15:41:47 +02:00
Lorenz Meier
981dac8e95
Navigator: Increase RAM size
2017-05-06 12:34:28 +02:00
Daniel Agar
1fd343b5cc
navigator remove FW and MC cruise parameters
2017-04-23 14:50:21 +02:00
Sander Smeets
0106840b87
Allow inflight updates of cruise throttle during missions
2017-04-23 14:50:21 +02:00