Andrew Tridgell
30997a2b05
AP_Common: added setonoff() method for bitmask
2022-10-24 22:23:43 +09:00
Andrew Tridgell
cda3fb6368
AP_Common: added BIT_IS_SET_64()
2022-09-06 10:49:50 +10:00
Peter Barker
d092e767ea
AP_Common: correct gtests
...
AFAIK it's invalid to new a zero-length array.
2022-08-15 07:39:39 +10:00
bugobliterator
3c87062f27
AP_Common: add support for comparing BitMasks
2022-07-27 18:18:03 +10:00
Peter Barker
5286ad45ad
AP_Common: AP_FWVersion doesn't need mavlink headers
2022-07-16 17:15:52 +10:00
Peter Barker
c085b713ac
AP_Common: correct comments on get_alt_cm and change_alt_frame
2022-06-30 20:08:24 +10:00
François Carouge
772c80a038
AP_Common: class template parameters not compliant in constructor declaration
2022-06-28 11:05:53 +10:00
Ruffalo-sunghwan
988eb67298
AP_Common : correct comment spelling
2022-05-24 20:27:45 +09:00
Peter Barker
f1069023ee
AP_Common: tidy includes
2022-05-03 09:14:58 +10:00
Randy Mackay
23ad8b23ac
AP_Common: clarify Location::get_distance is horizontal only
2022-04-26 18:37:54 +09:00
Andrew Tridgell
8973519232
AP_Common: improved accuracy of get_bearing()
...
make base function ftype, then convert to int32_t for get_bearing_to()
2022-03-10 07:34:20 +11:00
Andrew Tridgell
5560dc24b5
AP_Common: removed terrain home correction
2022-03-10 07:34:20 +11:00
Andy Piper
578ca147b7
AP_Common: add UNUSED_PRIVATE_MEMBER
2022-03-03 16:34:14 +11:00
Shiv Tyagi
560e24385a
AP_Common: fix location sanitize unit test
2022-03-01 10:55:32 +11:00
Shiv Tyagi
41a5afdf64
AP_Common: use default location alt frame while sanitizing location alt
...
We should also set alt frame along with copying altitude value while sanitizing it
2022-03-01 10:55:32 +11:00
Andrew Tridgell
19661fe981
AP_Common: added uint16_t sorting code
...
also added test suite
2022-02-19 18:24:56 +11:00
Patrick José Pereira
b839ddcc00
AP_Common: tests: Update fwversion with the latest version
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2022-02-11 09:21:00 +11:00
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>
2022-02-11 09:21:00 +11:00
Patrick José Pereira
b2bd74f53c
AP_Common: AP_FWVersionDefine: Add comment about version number
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2022-02-11 09:21:00 +11:00
Patrick José Pereira
759057347e
AP_Common: AP_FWVersionDefine: Fix indentantion level for fw_hash
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2022-02-11 09:21:00 +11:00
Peter Barker
51f8bba3a1
AP_Common: add STR_VALUE macro
2022-02-10 12:13:43 +11:00
Andy Piper
bdbcda6b0f
AP_Common: allow ExpandingString to be reset
2022-02-09 12:47:55 +00:00
Peter Barker
8814486572
AP_Common: include integer version of hash in FWVersion struct
2022-02-09 18:32:38 +11:00
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
2022-02-08 11:20:20 +11:00
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
2022-01-19 08:07:45 +11:00
Peter Barker
522b12135f
AP_Common: correct UINT32_VALUE
2021-12-10 08:07:43 -08:00
Randy Mackay
f6e6ca197f
Location: get_vector_from_origin gets units comment
2021-12-01 09:03:40 +09:00
bugobliterator
60e0bec628
AP_Common: add support for setting custom external buffer
2021-11-10 17:21:35 +11:00
murata
1e91dfe9d6
AP_Common: Make the char_to_hex method a common method
2021-11-09 10:16:25 +11:00
Andy Piper
32482a29db
AP_Common: define build directory for tests
2021-10-26 11:42:12 +11:00
Andy Piper
ad55a570ee
AP_Common: define build directory for tests
2021-10-26 11:42:12 +11:00
Sandy Urazayev
644726ff50
AP_Common: Added missing fenv exception functions from FreeBSD fenv tree
...
Signed-off-by: Sandy Urazayev <ctu@ku.edu>
2021-10-16 20:09:11 +11:00
Pierre Kancir
cceaa1e2fc
AP_Common: use correct #pragma GCC diagnostic pop
2021-09-29 17:27:29 +10:00
Iampete1
407b70b82e
AP_Common: location: add get alt distance method
2021-09-28 09:31:13 +10:00
Josh Henderson
6c3612b51d
AP_Common: enable SITL unit testing
...
apcommon
2021-09-28 09:11:48 +10:00
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
2021-08-05 10:37:47 +10:00
Andrew Tridgell
68a33e996d
AP_Common: fixed invalid nmea test
2021-08-05 09:43:35 +10:00
Andrew Tridgell
a49f5b92e2
AP_Common: fixed printf format errors
2021-08-05 09:43:35 +10:00
Randy Mackay
70c6694798
AP_Common: add Location::linear_interpolate_alt
2021-07-22 08:51:41 +09:00
Peter Barker
2bd8a45c58
AP_Common: rename for AHRS restructuring
2021-07-21 21:01:39 +10:00
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
2021-07-14 17:34:40 +10:00
Andrew Tridgell
3ded1e6c10
AP_Common: added ftype precision offset call
2021-07-14 17:34:40 +10:00
Peter Barker
fc2338612e
AP_Common: stop setting terrain pointer in test_location
...
Also enable/disable as required for testing
2021-07-12 17:34:44 +10:00
Peter Barker
b625596dfa
AP_Common: use singleton to access AP_Terrain data
2021-07-12 17:34:44 +10:00
Andrew Tridgell
56d9134e38
AP_Common: adjust test_location values
...
for adjusted longitude scale accuracy
2021-07-10 07:20:41 +10:00
Andrew Tridgell
a924f66f70
AP_Common: fixed comment
2021-07-10 07:20:41 +10:00
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
2021-07-10 07:20:41 +10:00
Andrew Tridgell
b8e42be5d1
AP_Common: added double methods for SITL
2021-07-10 07:20:41 +10:00
Andrew Tridgell
a7f31929ea
AP_Common: use longitude scaling from definitions.h
2021-06-29 17:26:34 +09:00
Peter Barker
f69e2a49f6
AP_Common: add test for longitude wrapping
2021-06-25 15:33:55 +10:00