hiro2233
3742c3b243
AP_HAL: Added subtype board URUS.
...
This is a linux system based with Raspberry Pi B+, it's a automated
domotic system using APM framework.
8 years ago
Lucas De Marchi
05a7eef1a2
RingBuffer: use explict "if" and return early
...
Remove confusing use of ternary operator together with assign + load.
No change in behavior.
8 years ago
Murilo Belluzzo
3f1896b9b7
RingBuffer: Remove 'old style' version
8 years ago
Murilo Belluzzo
8526b25654
RingBuffer: Add a faster method to read a single byte
8 years ago
Martin Evans
37b85fd3cd
AP_HAL: Add Dark Linux board
8 years ago
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.
8 years ago
Andrew Tridgell
8f88d7c784
AP_HAL: fixed comment on XPlus channels
...
thanks for Francisco for noticing
8 years ago
Andrew Tridgell
4d44591e62
AP_HAL: fixed decoding of XPlus channels
8 years ago
Andrew Tridgell
ec8c22f26e
AP_HAL: support up to 20 channels on SRXL
...
tested with 18 channels on a DSM18 transmitter with a AR7700 receiver
with SRXL port
8 years ago
Andrew Tridgell
ece0a8721f
AP_HAL: added standalone test program for dsm
...
useful for debugging
8 years ago
Andrew Tridgell
7b3d0234d1
AP_HAL: added an SRXL protocol decoder
...
SRXL ports are commonly found on newer spektrum receivers like the AR7700
8 years ago
murata
ba60cce0c1
AP_HAL: simplify the processing of milliseconds from the time
8 years ago
Peter Barker
e71c71fcac
AP_HAL: correct casting of get_system_clock_ms
8 years ago
Andrew Tridgell
e356797888
AP_HAL: make cork() mandatory in RCOutput
8 years ago
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
8 years ago
Andy Little
4b2eedac05
AP_HAL: Split the AP_HAL_Boards.h header into per board sub headers for legibility
9 years ago
Andrew Tridgell
e7656fb7ac
AP_HAL: raise compass offset max again for Disco
...
values of 1600 happen on Z axis
9 years ago
Andrew Tridgell
2edd914634
AP_HAL: added st24 R/C protocol decoder
...
with thanks to the PX4 project
9 years ago
Andrew Tridgell
9a7af89b30
AP_HAL: added sumd decoder
...
with thanks to the PX4 project
9 years ago
Matthew Brener
06388b0417
Global: Fix typos
9 years ago
Andrew Tridgell
bf67d4277d
AP_HAL: define a larger compass offset max for Disco
9 years ago
Benoit Tran
9b89b4f561
AP_HAL: Correct HAL_PARAM_DEFAULTS_PATH for Parrot Disco
9 years ago
Gustavo Jose de Sousa
5c5ddc9d4a
AP_HAL: reformat AP_HAL_Boards.h
...
The definitions for each board haven't been reformatted here. They need a
little more thinking on how to format them in order to provide better
readability.
9 years ago
José Roberto de Souza
0b0be31a29
AP_HAL: add defines for Intel Aero
9 years ago
Lucas De Marchi
e1ab44f4a3
Global: remove get_fd() from Device API
...
This was there for compatibility with I2CDriver and SPIDriver. We don't
use them anymore so we can remove the compat method.
9 years ago
Lucas De Marchi
ead01855df
AP_HAL: remove default params for minlure
...
We are currently not using them.
9 years ago
LukeMike
13e3150023
VRBRAIN / AP_HAL_Boards: definition of new board VR Brain 5.4 and VR Core 1.0
9 years ago
Murilo Belluzzo
077e03678f
Global: Adapt Stream class to be used with Ringbuffer
9 years ago
Murilo Belluzzo
b856d26087
RingBuffer: ::set_size now returns true or false
9 years ago
Murilo Belluzzo
f7f203efa9
RingBuffer: Add ::clear() method to discard the buffer content
...
The same could be achieved with ::set_size(::get_size()), but was not
obvious and hurts code readability.
9 years ago
Murilo Belluzzo
75a1b102fb
RingBuffer: Handle zero sized better
...
Sometimes (like in DataFlash) the size of the ring buffer will be
determined in run time and the object can have size zero until proper
initialization. When this was the case, an underflow in ::get_size would
mess with the initializing algorithm.
Another issue was that the 'new' operator could fail what was not being
handled. Now, we only set the size member after we are sure 'new'
successfully allocated memory.
9 years ago
Lucas De Marchi
052f30bc70
AP_HAL: remove macros to use MS5611 in the main thread
9 years ago
Lucas De Marchi
590539f674
AP_HAL_Linux: implement threaded I2C
9 years ago
Lucas De Marchi
37de995960
AP_HAL: update Device interface for periodic tasks
...
Replace the previous not-implemented interface with a set of new methods
that can be resonably implemented:
- register_periodic_callback() now receives a functor returning bool
to easily allow "oneshot" timers
- adjust_periodic_callback() allows the caller to change the timer
for a specific handle. This way drivers like MS5611 can adjust the
timer depending on its state machine: the time to sample
temperature is smaller than the time to get a pressure sample
- add unregister_callback(): since we have an opaque pointer, we
can't tell the user to just delete it in order to unregister the
callback
9 years ago
Lucas De Marchi
57ec968b44
AP_HAL: remove SPIDriver
...
SPIDevice now controls all accesses to SPI bus.
9 years ago
Lucas De Marchi
3a5e8a17c7
AP_HAL: remove enum id for Ublox and RASPIO
9 years ago
Lucas De Marchi
01452bf922
AP_HAL: SPIDevice: add fullduplex method
...
This method is needed when we want to transfer both tx and rx at the
same time, as opposed to common cases for sensors in which they are like
in the I2C interface: half-duplex.
9 years ago
Lucas De Marchi
81345cc112
AP_HAL: Remove enum for Dataflash
9 years ago
Lucas De Marchi
b21ad36676
AP_HAL: remove I2CDriver
9 years ago
hiro2233
4a6447575c
AP_HAL: fixed and updated RCInput example.
9 years ago
Lucas De Marchi
cb01280d77
AP_HAL: define bus for Lightware rangefinder
9 years ago
Lucas De Marchi
cfb3124f2c
AP_HAL_Linux: remove types for spi drivers
...
Those drivers using SPIDevice interface don't need a global id for each
of them. Remove those that were already converted.
9 years ago
Andrew Tridgell
e407caaa41
AP_HAL: added support for Parrot Disco
9 years ago
Luiz Ywata
d5449a6f20
AP_HAL: Add read method
...
Provide a more intuitive api for reading an I2CDevice.
9 years ago
Lucas De Marchi
08ea1ea263
AP_HAL_Linux: RCOutput_Bebop: follow coding style
...
Minor changes to follow coding style and improve readability:
- sort headers
- move struct definition to compilation unit rather than header
- Add braces to if, for, etc
9 years ago
Luiz Ywata
7fb5db8077
AP_HAL_Linux: RCOutput_Bebop: use I2CDevice interface
9 years ago
Lucas De Marchi
b9f65996bc
AP_HAL: sparse-endian: unconditionally use byteswap.h
...
This is either provided by a system header or a minimal header from
'missing' directory.
9 years ago
Lucas De Marchi
40338c3272
AP_HAL: sparse-endian: use pragma once
9 years ago
Lucas De Marchi
6a80c3d70d
AP_HAL: RingBuffer: remove trailing whitespaces
9 years ago
Lucas De Marchi
24c7f76034
AP_HAL: RingBuffer: remove C++11 initialization
...
They are already initialized in the constructor.
9 years ago