Randy Mackay
f189ce5c68
AC_WPNav: minor formatting fix
...
non-functional change
7 years ago
Randy Mackay
368245017a
AC_WPNav: access pos-controller's horizontal p object
7 years ago
Randy Mackay
094620bc8a
AC_WPNav: pass dt to avoidance
7 years ago
Randy Mackay
4d0c24f4eb
AC_WPNav: RFND_USE param desription update
7 years ago
Peter Barker
dff27ec506
AC_WPNav: correct call for getting location vector
...
Function has been renamed and only takes a Vector2f
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
1a512609ac
AC_WPNav: Use the get_bearing_cd() overloaded function provided by AP_Math instead
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
07c8d208bc
AC_WPNav: Use DEGX100 define instead of hardcoded value (NFC)
7 years ago
Leonard Hall
e49d29f8cd
AC_WPNav: protect against divide by zero
...
This could occur if the spline origin and destination were the same location
In these cases we mark the vehicle as having reached the destination avoid all calculations
7 years ago
squilter
da7aa36f2d
AC_WPNav: add set_wp_destination_NED to accept target in meters NED
8 years ago
Randy Mackay
bd2ba1565c
AC_WPNav: minor format fix
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
079d2ff3be
AC_WPNav: correct min limit
8 years ago
Randy Mackay
a1a5c9f239
AC_WPNav: sanity check wpnav-radius
...
Occasionally users accidentally set the wpnav-radius to 0 and the vehicle gets stuck at waypoints
8 years ago
Randy Mackay
bffc5daeb0
AC_WPNav: unset yaw when setting new origin and destination
...
This ensures that old yaw targets are not used in the short interval before they are initialised in advance_wp_target_along_track or advance_spline_along_track
8 years ago
Randy Mackay
b1bd3f0364
AC_WPNav: yaw points along leash
8 years ago
Leonard Hall
62c123bb08
AC_WPNav: correct straight line waypoint leash calculation
...
The former calculation was not correctly using the 3D leash
8 years ago
Leonard Hall
ba011eef78
AC_WPNav: init z-axis feed-foward to correct stopping point calcs
8 years ago
Randy Mackay
e2cf836734
AC_WPNav: add get_stopping_point
...
returns 3D stopping point, simply re-uses pos_controller methods
8 years ago
Randy Mackay
e96332d346
AC_WPNav: reduce spline to straight twitch
8 years ago
Randy Mackay
d4c4daca16
AC_WPNav: speed-up and down parameter min to 10cm/s
8 years ago
Randy Mackay
8c6c2e46cc
AC_WPNav: protect against LOIT_SPEED divide-by-zero
8 years ago
Andrew Tridgell
17e1329068
AC_WPNav: converted to use AP_AHRS_View
...
for use in quadplane tailsitters
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
713b08d830
AC_WPNav: Reduced WPNAV_SPEED minimum to 20cm/s
8 years ago
Randy Mackay
a32068a973
AC_WPNav: remove ekf position reset handler
...
This has been migrated to the position control library
8 years ago
Randy Mackay
6406e34016
AC_WPNav: remove unused _loiter_step member
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
c87fa13e77
AC_WPNav: added WP_RFND_USE parameter
...
allows disable of rangefinder use for terrain following
9 years ago
Randy Mackay
2dc111ff39
Copter: reduce WPNAV_LOIT_MINA parameter description range
9 years ago
Jonathan Challinger
b5e80148c6
AC_WPNav: remove shift_loiter_target
9 years ago
Daniel Ricketts
8a6aa24525
AC_WPNav: use AC_Avoidance to stop at fence during Loiter
9 years ago
Randy Mackay
2bafc36ded
AC_WPNav: support rangefinder for terrain following
9 years ago
Tom Pittenger
684ac12dd6
AC_WPNav: fix compile when using AP_TERRAIN_AVAILABLE 0
9 years ago
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
9 years ago
Randy Mackay
1c4b2be16a
AC_WPNav: simplify use of terrain to just current location
9 years ago
Randy Mackay
e23c869c5d
AC_WPNav: fix reporting of set_wp_destination failure
9 years ago
Randy Mackay
9fbfea951a
AC_WPNav: spline handles terrain altitudes
9 years ago
Randy Mackay
8b2c479d62
AC_WPNav: straight line waypoints accept terrain
9 years ago
Andrew Tridgell
4908350ccb
AC_WPNav: limit WPNAV_ACCEL to that implied by ANGLE_MAX
...
this prevents an overshoot and backtracking in the navigation code
when WPNAV_ACCEL is unachievable due to an angle limit
9 years ago
Jonathan Challinger
3c4d226b64
AC_WPNav: call renamed functions in AC_AttitudeControl
9 years ago
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
9 years ago
Caio Marcelo de Oliveira Filho
e867a06383
AC_WPNav: use millis/micros/panic functions
9 years ago
Jonathan Challinger
f9c7f15052
AC_WPNav: WPNAV_LOIT_SPEED WPNAV_LOIT_MAXA take effect immediately
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Randy Mackay
adee13d729
AC_WPNav: handle ekf position reset in Loiter and Brake
9 years ago
Randy Mackay
040ec481f4
AC_WPNav: loiter uses pos_control.shift_pos_xy_target
9 years ago
Randy Mackay
c52f16b86f
AC_WPNav: increase param description max for LOIT_JERK
9 years ago
Randy Mackay
49c4a133d7
AC_WPNav: set jerk separately for wpnav and loiter
9 years ago
Jonathan Challinger
853f8bfaf4
AC_WPNav: stop gradually in loiter
9 years ago
Leonard Hall
5ab2a19173
AC_WPNav: loiter limits lean angle for alt loss
10 years ago
Randy Mackay
7706102d1e
AC_WPNav: add shift_loiter_target method
...
Shift the loiter target and freeze the feedforward if necessary
10 years ago