Commit Graph
836 Commits
Author SHA1 Message Date
Michelle Rossouw e716854cbb AP_Math: Log SCurve for Blimp as well 2026-06-02 17:46:27 +10:00
George Zogopoulos 6f4d04ecb5 AP_Math: Typo fix 2026-05-26 22:31:38 +10:00
Hunter McClelland f2b8d052b4 AP_Math: unit tests for kinematic_limit() 2026-05-26 22:31:04 +10:00
Leonard Hall 347e4b0a5f SCurve: deduplicate empty segment fill and constant jerk loop 2026-04-20 19:37:29 +09:00
Leonard Hall a605c03bb4 AP_Math: SCurve: extract extend_const_vel_to helper 2026-04-20 19:37:29 +09:00
Leonard Hall c2045d7198 AP_Math: Remove fabsf from kinematic_limit clean up 2026-04-15 15:43:13 +10:00
Leonard Hall 0760b4c7c0 AP_Math: Clarify kinematic_limit clean up 2026-04-15 15:43:13 +10:00
Leonard Hall f025da2fd8 AP_Math: add constraint validation to calculate_path tests 2026-04-14 10:29:49 +09:00
Leonard Hall 0b4020f7a1 SCurve: fix comment, whitespace and operator spacing 2026-04-14 10:29:49 +09:00
Leonard Hall 0918f5ef23 SCurve: use consistent float literals throughout 2026-04-14 10:29:49 +09:00
Leonard Hall 7e68cdc8d5 SCurve: fix path length sign, integer division, and divide-by-zero bugs 2026-04-14 10:29:49 +09:00
Leonard Hall 22df7b8ac7 AP_Math: add comprehensive calculate_path tests covering all code paths 2026-04-14 10:29:49 +09:00
Leonard Hall 74b078e67c AP_Math: Clarify kinematic_limit behavior and improve naming 2026-04-14 09:06:33 +09:00
Magnus Lindhé bcd11bf8ac AP_Math: Add checksum function used by AP_ExternalAHRS_SensAItion 2026-03-20 09:32:48 +11:00
Peter Barker f17b91326b AP_Math: provide float and double norm variants 2026-02-11 18:37:04 +11:00
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
llandThomas Watson 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 BarkerandLeonard Hall 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 BarkerandLeonard Hall 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