Andrew Tridgell
b49152bbe6
AP_HAL: mark new accept() socket as connected
2023-12-11 18:00:38 +11:00
Andrew Tridgell
2ee48dea29
AP_HAL: support bi-directional UDP broadcast sockets
2023-11-28 12:18:55 +11:00
Andrew Tridgell
a05acfc090
AP_HAL: added last_recv_address() with supplied buffer
...
this prevents a race condition with a static string
2023-11-28 12:18:55 +11:00
Tom Pittenger
e8c852f0d4
AP_HAL: Allow APMSockets to autodetect Broadcast IPs
2023-11-25 16:28:07 -08:00
Andrew Tridgell
ee592476ce
AP_HAL: implement multicast for UDP sockets
2023-11-25 12:19:43 -08:00
Tom Pittenger
df600e5582
AP_HAL: Enable SocketAPM to use LwIP/ChibiOS
2023-11-15 12:43:41 -08:00
Andrew Tridgell
26823b56ae
AP_HAL: added connect_timeout to SocketAPM
2023-10-23 20:27:49 +11:00
Mykhailo Kuznietsov
cc2e156888
AP_HAL: Fix some typos
...
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Andrew Tridgell
64040bfab4
AP_HAL: move ESC scaling up to AP_HAL level
2023-08-24 13:06:40 +10:00
Andrew Tridgell
8a8a45dd23
AP_HAL: added set_size_best() for ByteBuffer
2023-07-18 11:38:27 +10:00
Andrew Tridgell
ceb07c3f7b
AP_HAL: moved locking to AP_HAL and added monitor callback
2023-07-12 17:06:02 +10:00
Ryan Friedman
0faf1a2152
AP_HAL: Use new AP_Math utils
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
35c8951395
AP_HAL: Add methods for beNto<floatingType> conversions
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-06-05 09:09:13 +10:00
Ryan Friedman
925e9d8cbc
AP_HAL: Add reference to sparse endian manpage
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-13 11:32:38 +10:00
Peter Barker
394d70abe0
AP_HAL: add and use a "bool read(c)" method to AP_HAL
...
this is much less likely to not work vs the int16_t equivalent
2023-03-22 17:59:11 +11:00
Peter Barker
4cd97d58d7
AP_HAL: gate mavlink things on HAL_GCS_ENABLED, not HAL_BOOTLOADER_BUILD
2023-02-01 18:46:28 +11:00
Andrew Tridgell
a14c5b2955
AP_HAL: check for null buffer in ObjectBuffer get_size()
2023-01-08 15:11:32 +11:00
Andrew Tridgell
56d74a352c
AP_HAL: fixed vprintf for no hal.h
2022-02-22 12:13:19 +11:00
murata
7eb231281b
AP_HAL: Remove meaningless semicolons
2022-02-07 08:27:34 +09:00
Davis Schenkenberger
795e7e53bf
AP_HAL: add helpers le64toh_ptr, be64toh_ptr, put_le64_ptr, put_be64_ptr
2021-10-17 08:55:03 +11:00
Andrew Tridgell
aa05629ef6
AP_HAL: added peekiovec test
...
fixes #18285
2021-09-30 12:46:07 +10:00
Pierre Kancir
c12217eeb5
AP_HAL: use correct #pragma GCC diagnostic pop
2021-09-29 17:27:29 +10:00
Peter Barker
1976b2b859
AP_HAL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Pierre Kancir
2b44f86f9c
AP_HAL: fix ringbuffer test on clang.
...
../../libraries/AP_HAL/utility/tests/test_ringbuffer.cpp:46:17: fatal error: variable-sized object may not be initialized
uint8_t buf[strlen(str)+5] {};
2021-09-04 15:46:47 +10:00
Peter Barker
2cdc4f5698
AP_HAL: add basic tests for ringbuffer
2021-07-26 15:10:01 +10:00
Andrew Tridgell
90aed6f338
AP_HAL: fixed get_size() on ObjectBuffer to be consistent with set_size()
2021-07-26 15:10:01 +10:00
Siddharth Purohit
0138266fee
AP_HAL: disable cast align check while casting char* read pointer to object
2021-07-15 07:50:12 +10:00
Andrew Tridgell
7c5c805381
AP_HAL: removed perf counters
2021-06-07 14:29:27 +10:00
Patrick José Pereira
6899c0b5af
AP_HAL: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Tom Pittenger
afaca30075
AP_HAL: add helpers le24toh_ptr(), be24toh_ptr(), put_le24_ptr(), put_be24_ptr()
2020-12-30 17:56:38 -08:00
Andrew Tridgell
5e8380ff41
AP_HAL: allow replay on ChibiOS
2020-11-10 16:15:45 +11:00
Siddharth Purohit
0ca2f56b71
AP_HAL: add support for external buffer to be used in ByteBuffer
2020-09-24 12:32:19 +10:00
Andy Piper
ad895c2654
AP_HAL: ringbuffer get_size cannot be const because of semaphore
2020-09-22 09:37:02 +10:00
Patrick José Pereira
11c19a2dde
AP_HAL: RCOutput_Tap_Linux: Include arm/ioctls.h
...
Add missing include for TCGETS2 while compile with MUSL
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-08-25 07:15:00 -07:00
Peter Barker
85b1264ff4
AP_HAL: add WARN_IF_UNUSED to several methods
2020-07-20 10:19:47 +09:00
Andrew Tridgell
19093e25be
AP_HAL: added ptr accessors to sparse-endian.h
2020-07-07 10:23:00 +10:00
Peter Barker
fd3dd77489
AP_HAL: rename ringbuffer empty() to is_empty()
2020-06-09 10:21:48 +10:00
Peter Barker
d259c03079
AP_HAL: BetterStream add a read(uint8_t*buffer, uint16_t count method
2020-05-26 15:59:11 +10:00
Peter Barker
a8d03990ec
AP_HAL: add discard_input method on UARTDriver
2020-05-26 09:20:32 +10:00
Andy Piper
e2ef0bd36e
AP_HAL: collect data for three largest peaks
...
new dsp peak detection algorithm
add DSP sketch with frequency ascii art
tool to generate gyro data frames from batch sampled DF logs
add generated data from real Y6B flight
allow fft_start() to use ObjectBuffer<float> for lock-free access
allow ObjectBuffer to be resized
2020-05-24 07:43:34 +10:00
Peter Hall
2bd6d4674b
AP_HAL: utility: add thread safe ring buffer duplicate
2020-02-12 07:05:05 +11:00
Peter Barker
f6bb94ff33
AP_HAL: add missing break statement in dsm code
2020-01-15 13:55:42 +11:00
Andy Piper
22d6fd5e1f
AP_HAL: update docs for ObjectBuffer
2019-12-10 21:07:58 +11:00
Peter Barker
10c50844fd
AP_HAL: stop emitting extra CR before a LF as part of our printf
2019-11-08 17:37:04 +11:00
Peter Barker
10675ab5c4
AP_HAL: correct include ordering in srxl.h
...
The header needs stdint.h which it was only getting because it was
included after stdint.h in the cpp file.
Stop including standard headers before other ArduPilot headers
2019-09-11 14:19:14 +10:00
murata
2e4dda5ece
AP_HAL: Match output type and variable type
2019-07-16 10:11:13 +10:00
Peter Barker
b902316139
AP_HAL: remove buggy write implementation
2019-06-17 17:20:57 +10:00
Patrick José Pereira
fe3d4e2c3b
AP_HAL: Utility: Add missing header guard in packetise
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-05-20 23:50:23 +01:00
murata
dc452d41d2
AP_HAL: Change to shared CRC16 method
2019-04-09 12:50:17 +10:00
Andrew Tridgell
20d762293d
AP_HAL: remove more px4 remnants
2019-02-27 20:32:37 +11:00