Tom Pittenger
afaca30075
AP_HAL: add helpers le24toh_ptr(), be24toh_ptr(), put_le24_ptr(), put_be24_ptr()
4 years ago
Andrew Tridgell
5e8380ff41
AP_HAL: allow replay on ChibiOS
4 years ago
Siddharth Purohit
0ca2f56b71
AP_HAL: add support for external buffer to be used in ByteBuffer
4 years ago
Andy Piper
ad895c2654
AP_HAL: ringbuffer get_size cannot be const because of semaphore
4 years ago
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>
5 years ago
Peter Barker
85b1264ff4
AP_HAL: add WARN_IF_UNUSED to several methods
5 years ago
Andrew Tridgell
19093e25be
AP_HAL: added ptr accessors to sparse-endian.h
5 years ago
Peter Barker
fd3dd77489
AP_HAL: rename ringbuffer empty() to is_empty()
5 years ago
Peter Barker
d259c03079
AP_HAL: BetterStream add a read(uint8_t*buffer, uint16_t count method
5 years ago
Peter Barker
a8d03990ec
AP_HAL: add discard_input method on UARTDriver
5 years ago
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
5 years ago
Peter Hall
2bd6d4674b
AP_HAL: utility: add thread safe ring buffer duplicate
5 years ago
Peter Barker
f6bb94ff33
AP_HAL: add missing break statement in dsm code
5 years ago
Andy Piper
22d6fd5e1f
AP_HAL: update docs for ObjectBuffer
5 years ago
Peter Barker
10c50844fd
AP_HAL: stop emitting extra CR before a LF as part of our printf
5 years ago
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
5 years ago
murata
2e4dda5ece
AP_HAL: Match output type and variable type
6 years ago
Peter Barker
b902316139
AP_HAL: remove buggy write implementation
6 years ago
Patrick José Pereira
fe3d4e2c3b
AP_HAL: Utility: Add missing header guard in packetise
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
6 years ago
murata
dc452d41d2
AP_HAL: Change to shared CRC16 method
6 years ago
Andrew Tridgell
20d762293d
AP_HAL: remove more px4 remnants
6 years ago
Andrew Tridgell
dcc038dc83
AP_HAL: prevent a zero length leading buffer in peekiovec
6 years ago
Peter Barker
24653a33ed
SITL: make socket manipulation functions bool rather than void
...
... so callers can check if they succeeded or not
6 years ago
Andrew Tridgell
8907506c18
AP_HAL: added replacement for memrchr()
6 years ago
Andrew Tridgell
a0be4f4c8d
AP_HAL: fixed build and comments
6 years ago
Andrew Tridgell
d01f5ae6c8
AP_HAL: added mavlink_packetise()
...
used for aligning MAVLink packets on UDP on packet boundaries
6 years ago
Andrew Tridgell
9ea03e085d
AP_HAL: added readptr() and advance() to ObjectBuffer
...
this gives a more efficient way of accessing an ObjectBuffer, which
reduces interrupt latency in SoftSigReader
6 years ago
Siddharth Purohit
9a2eea9769
AP_HAL: disable float print methods for non FPU controllers
6 years ago
Peter Barker
c846a13d12
AP_HAL: functor: add != override
7 years ago
Hyungsub
6e2076a3f1
AP_HAL: Remove resource leak in srxl.cpp
...
I correct this issues and then open a pull request.
7 years ago
Peter Barker
584c5d5806
AP_HAL: Socket: add set_cloexec
7 years ago
Francisco Ferreira
695d92ddbf
AP_HAL: remove Qualcomm board support
7 years ago
Peter Barker
6c7c916c78
AP_HAL: eliminate AP_HAL::Print and AP_HAL::Stream
...
Just *way* too many layers involved here
7 years ago
Pierre Kancir
f66c83a59e
AP_HAL: fix FALLTHROUGH
7 years ago
Andrew Tridgell
d030f2888b
AP_HAL: added multi-object push to RingBuffer
...
this is much more efficient than pushing them one at a time
7 years ago
Andrew Tridgell
3f5534eed5
AP_HAL: use calloc in preferance to malloc
7 years ago
Lucas De Marchi
7edde571e1
AP_HAL: RCOutput_Tap: make LEDs blink on non-Aero ESCs
...
The protocol defines bits for controlling possible LEDs. On Aero the ESC
firmware simply ignores these bits and blink with a fixed frequency.
Add logic to be able to blink the ESC if not flashed with the Aero
version of the firmware.
7 years ago
Lucas De Marchi
2c3054cbae
AP_HAL: RCOutput_Tap: remove feedback from ESCs
...
This is not currently working on Aero, the only user of it right now,
and it has been commented out. Remove dead code.
7 years ago
Lucas De Marchi
d3a1ed9792
AP_HAL: RCOutput_Tap: fix comment with protocol bits
7 years ago
fnoop
149188de12
AP_HAL: Add size() method to RingBuffer ObjectArray
7 years ago
fnoop
3ddd9a6bca
AP_HAL: RingBuffer: Prefix private members with underscore
7 years ago
Lucas De Marchi
51665a2ea9
AP_HAL: RCOutput_Tap: split baudrate set for Linux and Nuttx
...
On Linux (and in most of posix-like systems) the baudrate set in struct
termios via cfset[io]speed is actually the index of the standard
baudrates, it's not the baudrate per se (hence the use of B* macros).
On Linux it's possible to set the baudrate by passing the baudrate
itself to TCSETS2 ioctl. Unfortunately it's not possible to include
asm/termbits.h and termios.h in the same compilation unit, so we need to
split it. Here we split into a Linux and a NuttX implementation.
7 years ago
Lucas De Marchi
58a76adc13
AP_HAL: RCOutput_Tap: allow different device to be used
7 years ago
Lucas De Marchi
f6b1099896
AP_HAL: move in tap esc implementation
...
This can be shared with Linux.
7 years ago
Lucas De Marchi
0e502d89a3
AP_HAL: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
8 years ago
Lucas De Marchi
2e096d76c6
sparse-endian: avoid clash with linux/types.h
...
On recent kernels (>= 4.10) __bitwise is defined on the header. Avoid
warning about redefining it.
8 years ago
Eugene Shamaev
d1792689f1
AP_HAL/utility: clear added to RingBuffer
8 years ago
murata
974d63a6b5
AP_HAL: Change the format of the return value of the method header.
8 years ago
Andrew Tridgell
da45aef5c6
AP_HAL: fixed a logic bug in the srxl state machine
...
when decoding invalid input the buflen could grow to beyond the buffer
size, overwriting the next block of memory. On Disco this ended up
overwriting the Perf::_instance variable, which led to a segmentation
fault
8 years ago
Lucas De Marchi
b0ddf81687
Remove stdbool.h include for C++ sources
...
This header is not needed in our C++ sources.
8 years ago