Leonard Hall
bc6e5150f6
AP_Math: Support future plane command model requirements.
2026-02-04 18:38:37 +11:00
Peter Barker
cbcb3ba3c7
AP_Math: stop gating wrap_Pi<double> on AP_MATH_ALLOW_DOUBLE_FUNCTIONS
2026-01-28 19:17:49 +11:00
Peter Barker
0c26780cce
AP_Math: add separate double and float implementations for wrap_PI and wrap_2PI
...
avoids double promotion when the argument is not double
2026-01-28 19:17:49 +11:00
Leonard Hall
8d30995077
AP_Math: limit_accel_corner_xy: Improve function readability.
2026-01-26 19:07:31 -05:00
Leonard Hall
420ddafa1a
AP_Math: Shaper algorithm - limit handling update
2026-01-26 19:07:31 -05:00
Leonard Hall
801ac6ad64
AP_Math: limit_accel_corner_xy: Improve post corner cross track behavior
2026-01-26 19:07:31 -05:00
Leonard Hall
5170571b51
AP_Math: Simplify Shaper algorithm, same behavior
2026-01-26 19:07:31 -05:00
Leonard Hall
4d07b4216a
AP_Math: limit_accel_corner_xy: Improve corner behavior
2026-01-26 19:07:31 -05:00
Leonard Hall
2f5e5e7c6b
AP_Math: Tighten sqrt_controller_accel input checks
2026-01-26 19:07:31 -05:00
Leonard Hall
4692e07845
AP_Math: Update shaping to use improved command model
2026-01-26 19:07:31 -05:00
nttedt-murata
8df51a9917
AP_Math: Add an 8-bit constrain function
2026-01-27 08:47:40 +11:00
Leonard Hall
84bf935c1c
AP_Math: Control: Add limit_accel_corner_xy
2026-01-08 11:50:49 +11:00
Leonard Hall
aba26e9882
AP_Math: Control: Name and comment changes
2026-01-08 06:43:51 +11:00
Leonard Hall
1fc79cdd48
AP_Math: Fix NEU to NED comments
2025-12-17 08:03:10 +09:00
Leonard Hall
acc584da2a
AP_Math: NEU to NED renaming - Conversion
2025-12-17 08:03:10 +09:00
Leonard Hall
f784181dba
AP_Math: Ensure sign of speed and acceleration limits
2025-11-21 13:01:44 +09:00
Leonard Hall
160936cec0
AP_Math: Comment Change No compiler change
2025-11-14 10:01:37 +11:00
Leonard Hall
d650d534f9
AP_Math: Support SCurve Arcs
2025-11-12 20:47:30 +11:00
Andy Piper
2b670c6124
AP_Math: return direction and length of closest segment to point from Polygon_closest_distance_point()
2025-11-05 18:24:54 +11:00
davydrybak
e682702ded
AP_Math: tests: include <signal.h> on macOS for sigemptyset()
2025-10-16 17:30:48 -05:00
ll
579a350ef0
AP_Math: add quaternion division annotation
...
Co-authored-by: Thomas Watson <twatson52@mac.com >
2025-09-30 13:03:40 -05:00
Leonard Hall
ef7c4935bd
AP_Math: Convert to postype
2025-09-26 10:35:25 +09:00
Peter Barker
6a95df2f4e
AP_Math: replace ALLOW_DOUBLE_MATH_FUNCTIONS with AP_MATH_ALLOW_DOUBLE_FUNCTIONS
...
.... and this one is always defined, so check for truth!
2025-07-26 15:56:56 +10:00
Peter Barker
3708936c62
global: correct shebang lines to refernce python3
...
also remove the odd encoding line which is not required in Py3
2025-07-22 10:45:57 +10:00
Leonard Hall
bb3c031049
AP_Math: Remove units on get_horizontal_distance
2025-07-17 09:12:37 +09:00
Leonard Hall
df6e48f1fd
AP_Math: Control: Improve comments
2025-07-11 13:50:33 +09:00
Leonard Hall
5a06f14dff
AP_Math: No Compiler Change
2025-07-11 13:50:33 +09:00
Leonard Hall
a33e6d9e8f
AP_Math: support get_bearing_to_target_rad
2025-07-07 09:28:56 +09:00
Leonard Hall
816fb9c2e3
AP_Math: Convert copter to radians
2025-07-01 09:06:25 +09:00
Peter Barker
bc7fe903b1
AP_Math: correct range of Vector2.angle() method
...
Prior to this commit, the range of the function was -M_PI/2 to M_PI*3/2 (-90 to 270 degrees).
This adjust the function range to be -M_PI to M_PI (-180 to 180 degrees)
This makes the function consistent with methods such as "get_bearing_cd"
Co-authored-by: Leonard Hall <leonardthall@gmail.com >
2025-06-25 17:27:26 +10:00
Peter Barker
ce9c47ae3f
AP_Math: adjust parameters to atan2f to conform to cconventions
...
Co-authored-by: Leonard Hall <leonardthall@gmail.com >
2025-06-25 17:27:26 +10:00
Leonard Hall
c5c840ecd5
AP_Math: Names and Units
2025-06-23 15:05:55 +09:00
Christian Clauss
dc9446af62
wscript: Add # flake8: noqa linter directive
2025-06-20 20:30:15 +10:00
Christian Clauss
ad6b196396
AP_Math: Add # flake8: noqa linter directive
2025-06-20 20:30:15 +10:00
Peter Barker
7baf6f18fe
AP_Math: replace ToRad with radians and ToDeg with degrees
2025-05-29 11:24:56 +10:00
Leonard Hall
f35312f921
AP_Math: Remove RadiansToCentiDegrees and CentiDegreesToRadians
2025-05-28 20:16:26 +09:00
Leonard Hall
986fb7e29d
AP_Math: Create cd_to_rad , rad_to_cd, remove DEGX100
2025-05-28 20:16:26 +09:00
Leonard Hall
5fb3e867fb
AP_Math: Control: add Const
2025-05-22 11:53:02 +09:00
Leonard Hall
dd091a7fe0
AP_Math: fix shape limits
2025-05-22 11:53:02 +09:00
Leonard Hall
2b818520cc
AP_Math: Control: Add heading input shaping
2025-05-22 11:53:02 +09:00
muramura
4dd2fb2cb0
AP_Math: Clarify the floating-point value
2025-05-05 21:49:43 +10:00
Andy Piper
14bc825f74
AP_Math: remove new distance to point code
2025-04-09 17:01:04 +01:00
Andy Piper
385f9de5a2
AP_Math: re-instate cartesian polygon distance calculator
2025-04-09 17:01:04 +01:00
Andy Piper
abaa64a754
AP_Math: correct Polygon_closest_distance_point() for use with lat/lng at small distances
...
add polygon proximity tests
2025-04-09 17:01:04 +01:00
Thomas Watson
0ecdae05ba
AP_Math: split radians into float and double variants
...
Most `radians` uses give a float argument and use a float return type.
On `HAL_WITH_EKF_DOUBLE` boards this results in a bunch of unnecessary
conversions. Create separate double and float variants of the function
to eliminate the impact. The `DEG_TO_RAD` constant is already a float,
therefore there is no loss of precision in the operation.
We also need a variant that takes an `int` argument as these are
supplied in several places, primarily as constants, and the `int`
conversion is otherwise ambiguous.
Saves a few hundred bytes of flash on such boards.
2025-04-08 22:06:37 +10:00
Thomas Watson
19972714b1
AP_Math: drop AP_Matrix3f param mention
...
It hasn't been a thing for nearly a decade.
2025-04-05 19:32:25 -05:00
Leonard Hall
36b0bfb708
SCurve: Clarify segment names
2025-04-02 12:18:37 +11:00
Leonard Hall
56b99d4aa5
SCurve: Fix speed and accel checks to include z component when transitioning fast waypoints
2025-04-02 12:18:37 +11:00
Peter Barker
0ae3e7cdcb
AP_Math: allow initial value to be specified for crc8_generic
...
some crc8's start with a non-zero value
2025-03-05 18:17:28 +11:00
Julio Cesar Matias
076951f003
matrix_alg: Probable redundancy
2025-03-03 08:57:39 +09:00