Pierre Kancir
1854681e09
AP_Math: use past_interval_finish_line and line_path_proportion from Location
6 years ago
Pierre Kancir
4f31c3dcd5
AP_Math: move line_path_proportion to Location
6 years ago
Pierre Kancir
e06d7dbbf7
AP_Math: move location_passed_point to Location and rename
6 years ago
Peter Barker
11dcdc58e0
AP_Math: clean up includes a little
6 years ago
Pierre Kancir
121e5d0abf
AP_Math: move location_3d_diff_NED to Location and rename
6 years ago
Peter Barker
381bb41a5e
AP_Math: make constraining NaNs an internal error
6 years ago
Pierre Kancir
e787922ab0
AP_Math: move check_latlng to Location
6 years ago
Pierre Kancir
b10e75f4e1
AP_Math: move locations_are_same to Location and rename to same_latlon_as
6 years ago
Pierre Kancir
058cade92c
AP_Math: use get_distance_NE instead of location_diff
6 years ago
Pierre Kancir
00fa07ef33
AP_Math: move location_diff to Location and rename
6 years ago
Peter Barker
ce53ae63ae
AP_Math: use /2 in place of *0.5f
...
MdB says:
dividing by 2 is actually optimal. It's type correct for all usage, and the compiler generates the multiplication if it's float, and sticks with divide for integers
Godbolt indicates on any optimization level (O1-O3, and Os) that the compiler will correctly optimize the / 2 into a float multiplication if using a float, but if using integer types in the template it will stick with the / 2 which is faster then doing the conversions to/from float.
6 years ago
Peter Barker
39ae285a7f
AP_Math: add floating point constant designators
6 years ago
Pierre Kancir
b31e5bf055
AP_Math: move location_update to Location and rename to offset_bearing
6 years ago
Pierre Kancir
88b29ff18c
AP_Math: move get_bearing_cd to Location and rename to get_bearing_to
6 years ago
Pierre Kancir
f6941beeb9
AP_Math: fix circulary inclusion error
6 years ago
Pierre Kancir
d47e9c8514
AP_Math: add missing include on matrix3
6 years ago
Peter Barker
e6a8e337c7
AP_Math: move sanitize to be a method on location
6 years ago
Peter Barker
431bd77d7e
AP_Math: move print_latlon into sole caller
6 years ago
Peter Barker
499cc45ac0
AP_Math: move longitude_scale into Location class
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
65ccef04b9
AP_Math: replace location_offset() and get_distance() C function calls with Location object member (C++) function calls
...
This allows removing duplicated code in the AP_Math/location.cpp file
6 years ago
Andrew Tridgell
ecbe67a0fe
AP_Math: fixed inefficient sq() function
6 years ago
Randy Mackay
07f7d793df
AP_Math: add quaternion::angular_difference
6 years ago
Peter Barker
81ddeef1bd
AP_Math: remove keywords.txt
6 years ago
Pierre Kancir
695073db49
AP_Math: correct crc_xmodem definition
6 years ago
Pierre Kancir
9e927d1376
AP_Math: correct copyright, add pragma-once
6 years ago
Pierre Kancir
97ce39bf0c
AP_Math: use direct assignment for rotate()
6 years ago
Pierre Kancir
dd0283d537
AP_Math: reduce variable scope in crc_crc8
6 years ago
Peter Barker
2fa0b61f8b
AP_Math: update example/test for Location_Class merge
6 years ago
Peter Barker
31fa9e582e
AP_Math: adjust for Location_Class and Location unification
6 years ago
Peter Barker
ce37c9f69b
AP_Math: adjust for location flags being moved out of union
6 years ago
Pierre Kancir
85b83ed6af
AP_Math: remove non-ascii caracter
6 years ago
Pierre Kancir
f1270b4b22
AP_Math: const correctness
6 years ago
Michael du Breuil
48610ea0a0
AP_Math: Remove an unneeded safe_sqrtf, leverage is_zero
6 years ago
Peter Barker
154d771e6c
AP_Math: correct compilation when running MATH_CHECK_INDEXES
6 years ago
Peter Barker
dc14d7bce4
AP_Math: add another test for wrap_360_cd
6 years ago
Lucas De Marchi
5521fce676
AP_Math: add non-uniform Vector3f scaling
6 years ago
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