Leonard Hall
f07448a0ac
AP_Math: Support changing update period
2023-01-08 21:03:25 +11:00
Reilly Callaway
e076ab49b8
AP_Math: Add kg/m^3 to g/cm^3 conversion define
2022-10-04 13:38:30 +11:00
Andrew Tridgell
5470c6435e
AP_Math: rename * operator for vector3f * matrix3f
2022-09-11 07:57:16 +10:00
Andrew Tridgell
e1c006c25d
AP_Math: added double_to_int32 and double_to_uint32
2022-09-06 10:49:50 +10:00
Peter Barker
f345c16fda
AP_Math: add dignostic message for SCurve internal error
2022-08-10 22:18:42 +10:00
Leonard Hall
1e3e5e5577
AP_Math: Control: Add velocity limits to shaping functions
2022-08-08 20:54:37 -04:00
Iampete1
d62508b273
AP_Math: tests: params always use set method
2022-08-03 13:43:48 +01:00
Andrew Tridgell
88f0a324fd
AP_Math: added rounding functions
...
prevent undefined behaviour in float -> integer types
2022-07-12 11:00:08 +10:00
François Carouge
e52e64b11c
AP_Math: class template parameters not compliant in constructor declaration
2022-06-28 11:05:53 +10:00
Iampete1
702245f89e
AP_Math: calc_lowpass_alpha_dt: remove unused constrain
2022-06-08 17:11:08 +10:00
Mark Whitehorn
6f789ead55
AP_Math: add unit test for rc_input_to_roll_pitch
2022-05-31 08:08:17 +09:00
Leonard Hall
1a21c6da1e
AP_Math: Move rc_input_to_roll_pitch conversion
2022-05-31 08:08:17 +09:00
Peter Barker
a08025125b
AP_Math: tidy includes
2022-05-03 09:14:58 +10:00
Andrew Tridgell
a95b429acc
AP_Math: added unsigned versions of constrain functions
...
sometimes it really does matter that we use constrain_uint32() instead
of constrain_int32(). For example, if we have a value like 0xFFFFFFFF
then the result will be very different
we should use unsigned constrain when dealing with unsigned values
2022-04-05 17:46:52 +10:00
Randy Mackay
8fcefb59b1
AP_Math: add Vector2f::dot
2022-03-30 15:34:14 +09:00
Peter Barker
d9f819085c
AP_Math: add specialisation for sq(float)
...
avoids conversion to double
2022-03-30 08:44:19 +11:00
xianglunkai
abb0bf34d2
test_3d_lines:fix test result for test_3d_lines
2022-03-29 08:26:39 +09:00
xianglunkai
4513546845
vector3:return w1 not zero vector
2022-03-29 08:26:39 +09:00
Bill Geyer
7e09f68f26
AP_Math: add chirp function to support frequency sweeps in systemid and autotune
2022-03-29 08:05:41 +09:00
Andrew Tridgell
ca4151be2c
AP_Math: added angle_to_accel() and accel_to_angle()
2022-03-18 13:36:16 +11:00
Peter Barker
e07ddf95b4
AP_Math: provide rand_float on embedded hardware
2022-03-17 14:39:55 +11:00
Andrew Tridgell
eee2b00d8c
AP_Math: fixed build error on cygwin
...
ensure variables are always initialised
2022-03-09 14:08:26 +11:00
Leonard Hall
7673948d2a
AP_Math: SCurve: Increase corner speeds
2022-03-05 11:34:40 +09:00
Leonard Hall
a8b86e9c45
AP_Math: Convert S-Curves to use maximum Snap to remove minimum time between waypoints
2022-03-05 11:34:40 +09:00
Iampete1
3e75283717
AP_Math: ftype: include float.h
2022-03-02 18:16:42 +11:00
Iampete1
9ec8bb17b2
AP_Math: benchmarks: define hal
2022-03-02 18:16:42 +11:00
Iampete1
97602aadf5
AP_Math: examples: test custom rotations
2022-03-02 18:16:42 +11:00
Iampete1
15326a8d90
AP_Math: tests: define hal where requirerd for custom rotaitons
2022-03-02 18:16:42 +11:00
Iampete1
7a6f57ccf1
AP_Math: add support for AP_CustomRotations
2022-03-02 18:16:42 +11:00
Andrew Tridgell
e96507f55f
AP_Math: added crc_crc64()
2022-02-17 14:37:41 +11:00
Andy Piper
87a369727a
AP_Math: specialize float and double functions to use fabsf() and simple comparison otherwise
2022-02-13 14:43:37 +11:00
Randy Mackay
f57a081ceb
AP_Math: minor control format fix
2022-02-08 17:01:23 +09:00
Leonard Hall
a47fc65511
AP_Math: Control: improve real time S-Curve response to small inputs
2022-02-08 16:58:44 +09:00
Randy Mackay
372fc1a840
AP_Math: spline lateral scaler reduced to 0.5
...
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2022-01-31 12:05:59 +09:00
Joshua Henderson
4e3a66a4d3
AP_Math: quaternion add is_zero() & zero()
...
& length_squared() & add unit tests
2022-01-19 18:03:17 +11:00
Andrew Tridgell
319592a148
AP_Math: added degF_to_Kelvin()
2022-01-17 15:16:24 +11:00
Peter Barker
e988bf9046
AP_Math: add KELVIN_TO_C define
2022-01-13 18:31:46 +11:00
murata
414ca96e5c
AP_Math: Move crc16-ibm CRC calculation method to a common class
2022-01-13 09:44:40 +11:00
Randy Mackay
8bbdd4825f
AP_Math: minor control spelling and format fixes
2022-01-12 13:07:15 +09:00
Andy Piper
fbaa2e7b09
AP_Math: allow selection of inline version of vector operations for performance.
2021-12-22 18:23:33 +11:00
arbalasquide
fd3c83c0d1
AP_Math: Add AUS_TO_MAH definition
2021-12-22 07:52:03 +11:00
Leonard Hall
1e124ca957
AP_Math: Control: Add directional based acceleration limit
...
AP_Math: Control: Add directional based acceleration limit
2021-12-16 09:54:49 +09:00
Peter Barker
2205b95c99
AP_Math: create double versions of is_zero, is_positive and is_negative
...
Seeks to prevent
Thread 1 "ardurover" received signal SIGFPE, Arithmetic exception.
is_positive<double> (fVal1=9.6315720352771873e+44)
at ../../libraries/AP_Math/AP_Math.h:66
66 return (static_cast<float>(fVal1) >= FLT_EPSILON);
2021-12-15 19:33:55 +11:00
Randy Mackay
09388b7408
AP_Math: minor comment fix
2021-12-15 11:58:23 +09:00
Leonard Hall
718c094293
AP_Math: Control: Adjust limit handling to improve corners
2021-12-07 09:47:42 +09:00
Randy Mackay
4096a70a1f
AP_Math: update_pos_vel_accel methods accept limit as const reference
...
also update some comments
2021-12-01 12:45:46 +09:00
Peter Barker
99b1659e4b
AP_Math: memcpy nanfs rather than iteratively setting them
2021-11-30 10:35:38 +11:00
Josh Henderson
28d9be1cc0
AP_Math: get_horizontal_cm() simplify
2021-11-30 10:08:07 +11:00
Josh Henderson
2a15cf86ad
AP_Math: Location get_bearing & get_horizontal_distance use Vector2f
2021-11-30 10:08:07 +11:00
Iampete1
460df9bb50
AP_Math: control: remove unneeded normalisation.
2021-11-23 13:47:10 +09:00