Andrew Tridgell
96a55878a7
AP_Common: improved accuracy of get_bearing()
...
make base function ftype, then convert to int32_t for get_bearing_to()
3 years ago
Andrew Tridgell
6dc843b341
AP_Common: removed terrain home correction
3 years ago
Andrew Tridgell
19661fe981
AP_Common: added uint16_t sorting code
...
also added test suite
3 years ago
Patrick José Pereira
b839ddcc00
AP_Common: tests: Update fwversion with the latest version
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
3 years ago
Patrick José Pereira
4d82a17558
AP_Common: AP_FWVersionDefine: Update version number after breaking changes
...
Structure changed after 8814486572
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
3 years ago
Patrick José Pereira
b2bd74f53c
AP_Common: AP_FWVersionDefine: Add comment about version number
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
3 years ago
Patrick José Pereira
759057347e
AP_Common: AP_FWVersionDefine: Fix indentantion level for fw_hash
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
3 years ago
Peter Barker
51f8bba3a1
AP_Common: add STR_VALUE macro
3 years ago
Andy Piper
bdbcda6b0f
AP_Common: allow ExpandingString to be reset
3 years ago
Peter Barker
8814486572
AP_Common: include integer version of hash in FWVersion struct
3 years ago
Peter Barker
8cdda7dec2
AP_Common: stop passing mission in Terrain constructor
...
Terrain can use the mission singleton
This means Copter can have terrain while compiling mission out
3 years ago
Andrew Tridgell
8b7ea70029
AP_Common: support AP_CUSTOM_FIRMWARE_STRING
...
this allows vendors to setup a custom firmware string in hwdef.dat,
which makes maintaining a vehicle specific firmware easier
3 years ago
Peter Barker
522b12135f
AP_Common: correct UINT32_VALUE
3 years ago
Randy Mackay
f6e6ca197f
Location: get_vector_from_origin gets units comment
3 years ago
bugobliterator
60e0bec628
AP_Common: add support for setting custom external buffer
3 years ago
murata
1e91dfe9d6
AP_Common: Make the char_to_hex method a common method
3 years ago
Andy Piper
32482a29db
AP_Common: define build directory for tests
3 years ago
Andy Piper
ad55a570ee
AP_Common: define build directory for tests
3 years ago
Sandy Urazayev
644726ff50
AP_Common: Added missing fenv exception functions from FreeBSD fenv tree
...
Signed-off-by: Sandy Urazayev <ctu@ku.edu>
3 years ago
Pierre Kancir
cceaa1e2fc
AP_Common: use correct #pragma GCC diagnostic pop
3 years ago
Iampete1
407b70b82e
AP_Common: location: add get alt distance method
3 years ago
Josh Henderson
6c3612b51d
AP_Common: enable SITL unit testing
...
apcommon
3 years ago
Peter Barker
d73ce0ed57
AP_Common: tests: stop overriding non-virtual method
...
set_origin is no longer virtual. These tests can be reinstated once we
have a single origin for the AHRS
4 years ago
Andrew Tridgell
68a33e996d
AP_Common: fixed invalid nmea test
4 years ago
Andrew Tridgell
a49f5b92e2
AP_Common: fixed printf format errors
4 years ago
Randy Mackay
70c6694798
AP_Common: add Location::linear_interpolate_alt
4 years ago
Peter Barker
2bd8a45c58
AP_Common: rename for AHRS restructuring
4 years ago
Andrew Tridgell
416c0724d2
AP_Common: use double precision for more location functions when available
...
this makes the location functions more accurate at long distances when
EKF double enabled
4 years ago
Andrew Tridgell
3ded1e6c10
AP_Common: added ftype precision offset call
4 years ago
Peter Barker
fc2338612e
AP_Common: stop setting terrain pointer in test_location
...
Also enable/disable as required for testing
4 years ago
Peter Barker
b625596dfa
AP_Common: use singleton to access AP_Terrain data
4 years ago
Andrew Tridgell
56d9134e38
AP_Common: adjust test_location values
...
for adjusted longitude scale accuracy
4 years ago
Andrew Tridgell
a924f66f70
AP_Common: fixed comment
4 years ago
Andrew Tridgell
6a3b12956a
AP_Common: make longitude_scale() a static
...
this changes the use of longitude_scale() to use the average latitude
instead of the lattitude at one end of the line when calculating
positions and distances. It means we obey the basic geometry rule
that:
pos1 + offs = pos2
pos2 - offs == pos1
4 years ago
Andrew Tridgell
b8e42be5d1
AP_Common: added double methods for SITL
4 years ago
Andrew Tridgell
a7f31929ea
AP_Common: use longitude scaling from definitions.h
4 years ago
Peter Barker
f69e2a49f6
AP_Common: add test for longitude wrapping
4 years ago
Andrew Tridgell
77d83b9c77
AP_Common: fixed Location class for wrap at 180 degrees longitude
...
this allows us to fly missions across the date line
4 years ago
Andrew Tridgell
61faeb2d7f
AP_Common: added double methods for SITL
4 years ago
Pierre Kancir
983e402804
AP_Common: add more unitttests
4 years ago
Pierre Kancir
614ebff842
AP_Common: add more unit tests
4 years ago
Josh Henderson
206a414553
AP_Common: Location vec3 constructor zero out fields
4 years ago
Pierre Kancir
ba94d8839f
AP_Common: Make location PANIC message more explicit
4 years ago
Andy Piper
88bbec01b0
AP_Common: add firmware string without git hash.
4 years ago
Peter Barker
4abf854c45
AP_Common: remove weird cast of location object
4 years ago
Andrew Tridgell
6c0c6a1f48
AP_Common: added CLASS_NO_COPY() macro
...
used to make it easy to forbid copy of classes
4 years ago
Andrew Tridgell
71f207403e
AP_Common: make angles in degrees end in _deg
...
to make it obvious it is not radians
4 years ago
Andrew Tridgell
5a7ee5a376
AP_Common: fixed null termination bug in ExpandingString
...
not all HALs zero memory on realloc
4 years ago
Andrew Tridgell
3fb280ff50
AP_Common: added return to ExpandingString append
4 years ago
Andrew Tridgell
6c29f8c24f
AP_Common: added common nmea_printf code
4 years ago