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
Leonard Hall
77fbcf1741
AP_Math: Control: add expo calculation.
3 years ago
Pierre Kancir
d853d16c42
AP_Math: fix vectorN ctor warning by using C++11 brace initilization in all cases
3 years ago
Tom Pittenger
8c9dcf4ad8
AP_Math: added CRC16_CCITT non-standard variant
4 years ago
Peter Barker
be076e5b1a
AP_Math: correct descriptions of quaternion functions
4 years ago
Peter Barker
2251e442cc
AP_Math: move crc8_dvb_update into crc library
4 years ago
Leonard Hall
ad2a152751
AP_Math: Spelling fix
4 years ago
Leonard Hall
8961695369
AP_Math: Control: Refactor to use Jerk
4 years ago
Leonard Hall
3a8924c185
AP_Math: Control: protect against divide by zero
4 years ago
Iampete1
22100dd37c
AP_Math: move to 32 digit rotation constants
4 years ago
Iampete1
5ecfd3fbce
AP_Math: remove unused ROTATION_MAX_AUTO_ROTATION define
4 years ago
Iampete1
dbd95f8163
AP_Math: make duplicate rotations clear
4 years ago
Iampete1
080f6c295c
AP_Math: examples: rotations: add test for duplicate rotations.
4 years ago
Iampete1
f8220a8adf
AP_Math: tests: test quaternion rotation is the same as vector
4 years ago
Iampete1
6c5424aad6
AP_Math: add roll +- 45 rotations
4 years ago
Peter Barker
118d3f085f
AP_Math: quaternion: add from_euler(Vector3&)
4 years ago
Andrew Tridgell
c5ef672fb5
AP_Math: fixed expo_curve()
...
doesn't make sense as constexpr
4 years ago
Randy Mackay
7daacfd63e
AP_Math: vector2f gets float.h include
4 years ago
Randy Mackay
52bb8112b3
AP_Math: control.h needs vector2/3 includes
4 years ago
Randy Mackay
6c180994cd
AP_Math: add support for crc8_maxim
...
Thanks to FastCRC
4 years ago
Leonard Hall
de36398ebf
AC_Math: Control: Support Accel only input
4 years ago
Andrew Tridgell
75411afd21
AP_Math: added test for SCurve::calculate_path
...
this was the values shown in the core dump for failing guided mode
test in CI
4 years ago
Andrew Tridgell
498220b9f3
AP_Math: fixed error where t4_out could be negative in SCurve::calculate_path
...
this case cropped up in SITL due to floating point accuracies
4 years ago
Andrew Tridgell
f343c8501b
AP_Math: fixed double fill_nanf()
4 years ago
Andrew Tridgell
168e860f70
AP_Math: fixed a few more single precision calls
4 years ago
Andrew Tridgell
1486a473bd
AP_Math: remove unused rotation_matrix_norm()
4 years ago
Andrew Tridgell
d91397f2f2
AP_Math: change wrap_PI to ftype
...
prevent loss of precision
4 years ago
Andrew Tridgell
afb928081a
AP_Math: use ftype for a few internal trig fns
4 years ago
Andrew Tridgell
31a6663797
AP_Math: fixed vel correction test build
4 years ago
Andrew Tridgell
0f2f0d4cb2
AP_Math: allow for double EKF build
4 years ago
Michelle Rossouw
f95cb16434
AP_Math: Add Vector2f+z initialiser for Vector3f
4 years ago
Andrew Tridgell
978ea307b0
AP_Math: fixed the value LATLON_TO_CM
...
it didn't have enough digits of precision, and was inconsistent with
LOCATION_SCALING_FACTOR
4 years ago
Andrew Tridgell
aa03afafa7
AP_Math: added matrix3 tofloat and todouble
4 years ago
Andrew Tridgell
9b91cfe4ee
AP_Math: implement double versions of some position control methods
4 years ago
Andrew Tridgell
3a3a30ab22
AP_Math: define postype_t and vectors
4 years ago
Andrew Tridgell
3315ec5acc
AP_Math: added tofloat() and todouble() methods to Vector2 and Vector3
4 years ago