Peter Barker
1e26441ae6
AP_Common: Integrate methods for converting hexadecimal characters to numbers
...
Co-authored-by: muramura <ma2maru@gmail.com>
2024-09-25 08:48:44 +10:00
Randy Mackay
b6c5ad450d
AP_Common: char_to_hex returns 0 on invalid char
2024-07-09 09:08:51 +10:00
Andy Piper
d94e36fccc
AP_Common: ensure that constants are float not double if not otherwise declared
...
use correct DOUBLE_PRECISION_SOURCES definition
portably define qsort argument in tests
fix test_location
add test_location to double sources
2023-08-02 16:22:59 +01:00
Ryan Friedman
1cb8bf6308
AP_Common: Remove type punning utils to AP_Math
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
d40b02fbbd
AP_Common: Add type-punning alternative
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
bugobliterator
ac905caae9
AP_Common: add return to strncpy_noterm
2023-03-29 17:16:39 +11:00
murata
1e91dfe9d6
AP_Common: Make the char_to_hex method a common method
2021-11-09 10:16:25 +11:00
Andrew Tridgell
18deb1c0bd
AP_Common: added strncpy_noterm
...
used to suppress string termination warnings
2020-07-10 13:32:24 +10:00
murata
a39228c453
AP_Common: Make hexadecimal character number conversion method common
2019-08-06 10:14:12 +10:00
Peter Barker
57804e3118
AP_Common: unify Location_Class and Location
2019-01-16 11:45:29 +11:00
Peter Barker
a3a012b77e
AP_Common: remove packed nature of Location, move flags out of union
...
This saves ~2.5kB on fmuv3
2019-01-16 11:45:29 +11:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
090c02e6bd
AP_Common: rename is_bounded() to is_bounded_int32() and make inclusive
...
we will probably want float versions in future, and inclusive is
better for the RC_Channel case
2015-11-11 13:45:05 +11:00
Grant Morphett
ba8dbf6696
AP_Common: Added a new is_bounded global function.
2015-11-11 13:39:39 +11:00
Gustavo Jose de Sousa
e32ad93ae3
AP_Common: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:28:42 +10:00
Andrew Tridgell
5980ff8e1c
AP_Common: removed map_baudrate()
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2015-01-29 15:47:48 +11:00
Andrew Tridgell
42c1501563
AP_Common: moved map_baudrate() into AP_Common
...
this version supports a much wider range of baudrates
2014-05-21 12:45:25 +10:00
Pat Hickey
a2f97ac7c7
AP_Common.cpp: Delete empty cpp file
2012-12-20 14:51:28 +11:00
DrZiplok@gmail.com
10f3a6f9cb
Drop a couple things in here in support of code moving to libraries.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@455 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-11 06:13:28 +00:00