Peter Barker
f345c16fda
AP_Math: add dignostic message for SCurve internal error
3 years ago
Leonard Hall
1e3e5e5577
AP_Math: Control: Add velocity limits to shaping functions
3 years ago
Iampete1
d62508b273
AP_Math: tests: params always use set method
3 years ago
Andrew Tridgell
88f0a324fd
AP_Math: added rounding functions
...
prevent undefined behaviour in float -> integer types
3 years ago
François Carouge
e52e64b11c
AP_Math: class template parameters not compliant in constructor declaration
3 years ago
Iampete1
702245f89e
AP_Math: calc_lowpass_alpha_dt: remove unused constrain
3 years ago
Mark Whitehorn
6f789ead55
AP_Math: add unit test for rc_input_to_roll_pitch
3 years ago
Leonard Hall
1a21c6da1e
AP_Math: Move rc_input_to_roll_pitch conversion
3 years ago
Peter Barker
a08025125b
AP_Math: tidy includes
3 years ago
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
3 years ago
Randy Mackay
8fcefb59b1
AP_Math: add Vector2f::dot
3 years ago
Peter Barker
d9f819085c
AP_Math: add specialisation for sq(float)
...
avoids conversion to double
3 years ago
xianglunkai
abb0bf34d2
test_3d_lines:fix test result for test_3d_lines
3 years ago
xianglunkai
4513546845
vector3:return w1 not zero vector
3 years ago
Bill Geyer
7e09f68f26
AP_Math: add chirp function to support frequency sweeps in systemid and autotune
3 years ago
Andrew Tridgell
ca4151be2c
AP_Math: added angle_to_accel() and accel_to_angle()
3 years ago
Peter Barker
e07ddf95b4
AP_Math: provide rand_float on embedded hardware
3 years ago
Andrew Tridgell
eee2b00d8c
AP_Math: fixed build error on cygwin
...
ensure variables are always initialised
3 years ago
Leonard Hall
7673948d2a
AP_Math: SCurve: Increase corner speeds
3 years ago
Leonard Hall
a8b86e9c45
AP_Math: Convert S-Curves to use maximum Snap to remove minimum time between waypoints
3 years ago
Iampete1
3e75283717
AP_Math: ftype: include float.h
3 years ago
Iampete1
9ec8bb17b2
AP_Math: benchmarks: define hal
3 years ago
Iampete1
97602aadf5
AP_Math: examples: test custom rotations
3 years ago
Iampete1
15326a8d90
AP_Math: tests: define hal where requirerd for custom rotaitons
3 years ago
Iampete1
7a6f57ccf1
AP_Math: add support for AP_CustomRotations
3 years ago
Andrew Tridgell
e96507f55f
AP_Math: added crc_crc64()
3 years ago
Andy Piper
87a369727a
AP_Math: specialize float and double functions to use fabsf() and simple comparison otherwise
3 years ago
Randy Mackay
f57a081ceb
AP_Math: minor control format fix
3 years ago
Leonard Hall
a47fc65511
AP_Math: Control: improve real time S-Curve response to small inputs
3 years ago
Randy Mackay
372fc1a840
AP_Math: spline lateral scaler reduced to 0.5
...
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
3 years ago
Joshua Henderson
4e3a66a4d3
AP_Math: quaternion add is_zero() & zero()
...
& length_squared() & add unit tests
3 years ago
Andrew Tridgell
319592a148
AP_Math: added degF_to_Kelvin()
3 years ago
Peter Barker
e988bf9046
AP_Math: add KELVIN_TO_C define
3 years ago
murata
414ca96e5c
AP_Math: Move crc16-ibm CRC calculation method to a common class
3 years ago
Randy Mackay
8bbdd4825f
AP_Math: minor control spelling and format fixes
3 years ago
Andy Piper
fbaa2e7b09
AP_Math: allow selection of inline version of vector operations for performance.
3 years ago
arbalasquide
fd3c83c0d1
AP_Math: Add AUS_TO_MAH definition
3 years ago
Leonard Hall
1e124ca957
AP_Math: Control: Add directional based acceleration limit
...
AP_Math: Control: Add directional based acceleration limit
3 years ago
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);
3 years ago
Randy Mackay
09388b7408
AP_Math: minor comment fix
3 years ago
Leonard Hall
718c094293
AP_Math: Control: Adjust limit handling to improve corners
3 years ago
Randy Mackay
4096a70a1f
AP_Math: update_pos_vel_accel methods accept limit as const reference
...
also update some comments
3 years ago
Peter Barker
99b1659e4b
AP_Math: memcpy nanfs rather than iteratively setting them
3 years ago
Josh Henderson
28d9be1cc0
AP_Math: get_horizontal_cm() simplify
3 years ago
Josh Henderson
2a15cf86ad
AP_Math: Location get_bearing & get_horizontal_distance use Vector2f
3 years ago
Iampete1
460df9bb50
AP_Math: control: remove unneeded normalisation.
3 years ago
Tom Pittenger
ec5820044b
AP_Math: add defines for AP_SEC_PER_HOUR and AP_MSEC_PER_HOUR
3 years ago
Buzz
adaccdf0ba
AP_Math: esp32 with esp_idf have MIN and MAX defined to something else.
...
Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
3 years ago
Josh Henderson
9b74452270
AP_Math: add Internal_Error for quaternion of 0 length
3 years ago
Josh Henderson
0125ae26ac
AP_Math: enable SITL unit testing
3 years ago