Andrew Tridgell
d4eaf09baf
AP_Math: added rotation_equal()
6 years ago
Michael du Breuil
9cd1be1d6f
AP_Math: Speed up location calculations slightly
6 years ago
Peter Barker
43f3d611b2
AP_Math: pragma away the float-equal test for the maths tests
...
There are legitimate reasons for doing direct equivalence in these files
7 years ago
Peter Barker
8fee27937a
AP_Math: eliminate SITL float-equals issues
7 years ago
Peter Barker
fa5757f618
AP_Math: fix float-equals warnings
7 years ago
Andrew Tridgell
c3cf8f5435
AP_Math: fixed a bug in segment_intersection()
...
we could get an intercept point beyond the end of the segment
7 years ago
Peter Barker
626467db14
AP_Math: add tests for line intersection
7 years ago
Michael du Breuil
d568767164
AP_Math: Add conversion between inches of water to pascals
7 years ago
Michael du Breuil
46355e3de9
AP_Math: Add a warning to rotations to indicate that it is expected to
...
match the MAVLink definitions
7 years ago
Andrew Tridgell
8170fbcf80
AP_Math: added a comment on conventions for to_euler()
7 years ago
Peter Barker
20d22f3629
AP_Math: quaternion requires isnan, so include math.h to get it
7 years ago
Peter Barker
6af0dcfed0
AP_Math: create a constrain_int64
...
The template system doesn't work across 32/64 bit builds (SITL
vs fmuv4), probably because int is typedef'd to int64
7 years ago
Tom Pittenger
3653ba61d7
AP_Math: add is_valid_octal helper function.
...
returns true if valid
7 years ago
Patrick José Pereira
1ca6647b2e
AP_Math: Create Standard Sea Level variables
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Andrew Tridgell
d4d7d1f734
AP_Math: avoid double maths when not needed
7 years ago
Andrew Tridgell
61c8dfac31
AP_Math: split out double precision location functions
...
this allows ALLOW_DOUBLE_MATH_FUNCTIONS to be used
7 years ago
Andrew Tridgell
3b8ec3a2a0
AP_Math: allow double precision maths where needed
7 years ago
Jacob Walser
f97ac4af30
AP_Math: add custom rotation option
7 years ago
Jacob Walser
4f02f709a2
AP_Math: fix typo
7 years ago
Jacob Walser
e738f33770
AP_Math: Add ROTATION_PITCH_315 and ROTATION_ROLL_90_PITCH_315
7 years ago
Andrew Tridgell
a6e05cbf5a
AP_Math: added crc32 for IOMCU bootloader protocol
7 years ago
Andrew Tridgell
17f2f40b11
AP_Math: added xmodem CRC
...
used by blheli 4-way ESC protocol
7 years ago
Peter Barker
febcdd766b
AP_Math: narrow enumeration to uint8_t to avoid narrowing-warnings
...
/home/pbarker/rc/ardupilot/libraries/DataFlash/LogFile.cpp:361:25:
error: non-constant-expression cannot be narrowed from type 'enum
Rotation' to 'uint8_t' (aka 'unsigned char') in initializer list
[-Wc++11-narrowing]
orient1 : s0 ? s0->orientation() : ROTATION_NONE,
7 years ago
Peter Barker
c343a286c5
AP_Math: quaternion: add contructor from float[4]
7 years ago
bnsgeyer
600e0dac92
AP_Math: added support for cubic spline interpolation
7 years ago
Randy Mackay
c28cfcdc27
AP_Math: add Vector2f::circle_segment_intersection
7 years ago
Randy Mackay
a655c36159
AP_Math: add Vector2f::segment_intersection
7 years ago
Andrew Tridgell
ee1fea55ce
AP_Math: moved constants from AP_Baro
7 years ago
Andrew Tridgell
4ce696a520
AP_Math: fixed example build on ChibiOS
7 years ago
Andrew Tridgell
f5b24a3838
AP_Math: fixed build of Sub with ChibiOS
7 years ago
Andrew Tridgell
3d2c4ffa79
AP_Math: allow write to indexed vector2
7 years ago
Andrew Tridgell
f088c3de23
AP_Math: added long templates
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
e13281ab2d
AP_Math: add overloaded functions get_horizontal_distance_cm() and get_bearing_cd() (NFC)
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
ec1790dad9
AP_Math: Use DEGX100 define instead of hardcoded value (NFC)
7 years ago
Andrew Tridgell
9660973975
AP_Math: make crc_crc8 const
7 years ago
Andrew Tridgell
3f226cd2b9
AP_Math: added from_rotation() method to Matrix3
...
this is used to get a rotation matrix from a rotation enum
7 years ago
Peter Barker
1ca76173a5
AP_Math: set radians(...) and degrees(...) as constexpr
7 years ago
Randy Mackay
2aa1f3f100
AP_Math: replace divide with multiply in distance_to_segment
8 years ago
Randy Mackay
e892bbbac0
AP_Math: add Vector3f::distance_to_segment
8 years ago
Randy Mackay
e6328c350d
AP_Math: add Vector3f::distance_squared
8 years ago
khancyr
15398f8b0e
AP_Math: correct variable init and remove define in polygon
8 years ago
Miguel Arroyo
7cea21afa2
AP_Math: Moves rand_vec3f from SITL_State.
8 years ago
Francisco Ferreira
da5060964b
AP_Math: uniformize template type parameter keyword
...
Use typename everywhere instead of class
8 years ago
Francisco Ferreira
1ffe12008c
AP_Math: adapt test for new norm method API
8 years ago
Francisco Ferreira
7b98f41947
AP_Math: correct norm to need two arguments
...
Correctly use sqrtf instead of the double version
Stop casting to float since sq already returns one
8 years ago
Randy Mackay
db45442de2
AP_Math: remove unused angle method
8 years ago
Michael du Breuil
2cd6ff6dd5
AP_Math: Accept float epsilon in is_positive is_negative as a valid result
8 years ago
Michael du Breuil
5a15413513
AP_Math: Add is_negative and is_positive helpers
8 years ago
Andrew Tridgell
607220d12b
AP_Math: rename macros to avoid conflicts
...
these macros were also defined in NuttX in clock.h
8 years ago
Andrew Tridgell
2fcecaa7c5
AP_Math: added rand_float()
8 years ago