Andrew Tridgell
e3107a7e10
AP_HAL: fixed optflow typos
9 years ago
Ricardo de Almeida Gonzaga
eb418f54ee
AP_HAL: Fix typos
9 years ago
Staroselskii Georgii
2e5cfc2849
AP_Compass: added external compass autodetection on Navio
9 years ago
Staroselskii Georgii
8be5ef1642
AP_HAL: added possibility to use several compassed on Navio 2
9 years ago
Staroselskii Georgii
b677f975e7
AP_Compass: added LSM9DS1 magnetometer support
9 years ago
Lucas De Marchi
68ae619448
AP_Compass: detect compasses for minlure
...
Minlure has an onboard compass (HMC5883L) as slave of MPU-6000, but also
allows the use of an external HMC5883L compass, which should be
connected to the lure's I2C port.
9 years ago
Lucas De Marchi
424434e31e
AP_HAL: allow to build without HAL_COMPASS_DEFAULT
...
Otherwise we need to change the ifdef chain adding HAL_COMPASS_<BOARD>
definitions.
9 years ago
Lucas De Marchi
cf11776150
AP_HAL: fix signed and unsigned comparison warning
...
../../libraries/AP_HAL/examples/Printf/Printf.cpp:63:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ret != strlen(float_tests[i].result)) {
^
...
ardupilot/modules/gtest/include/gtest/gtest.h:1448:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (expected == actual) {
^
And similar ones.
9 years ago
Lucas De Marchi
9ac63d7128
AP_HAL: examples: fix coding style
9 years ago
Julien Beraud
d0114eac05
AP_HAL: Add bebop SPI Device to spi devices
...
Added to namespace
9 years ago
Lucas De Marchi
5a52533084
AP_OpticalFlow: move bus definition to AP_HAL header
9 years ago
Ricardo de Almeida Gonzaga
46fb57fcf1
AP_OpticalFlow: use I2CDevice interface
9 years ago
Peter Barker
e83b10cbc5
AP_HAL: move definition of callbacks structure out of C linkage
...
This fixes all the examples which use the AP_HAL_MAIN macro.
9 years ago
mirkix
b381045d5e
AP_HAL: BBBmini rework for dual MPU9250 and external HMC5843 compass
9 years ago
Andrew Tridgell
76868dd070
AP_HAL: added uartF
9 years ago
Andrew Tridgell
b94e577cb8
AP_HAL: added enable_sbus_out() call in RCOutput
9 years ago
Andrew Tridgell
e24d600e78
AP_HAL: added hal.rcout->set_output_mode()
9 years ago
hiro2233
7814841cd6
AP_HAL: Add RCOutput interactive example with Menu
9 years ago
Ricardo de Almeida Gonzaga
5bd034a5a8
Global: start using cmath instead of math.h
9 years ago
Lucas De Marchi
57f8db5672
AP_HAL: sparse-endian: conditionally include byteswap header
...
This is not present in qurt.
9 years ago
Lucas De Marchi
c5dc54dac7
AP_HAL: utility: import sparse-endian header
9 years ago
Lucas De Marchi
0ed3a93142
AP_HAL: define compass locations for linux boards
9 years ago
Lucas De Marchi
c5022ef5c9
AP_HAL: add names for LSM9DS0 on raspilot
9 years ago
Lucas De Marchi
cb8355c315
AP_HAL: fix compass define for bebop
9 years ago
Jonathan Challinger
6663d30728
AP_HAL: add RCOutput::read_last_sent definition
9 years ago
Lucas De Marchi
6358876f58
AP_HAL: add missing MPU9250 name for BH
9 years ago
Staroselskii Georgii
392165c6a2
AP_HAL: added Navio2 board definitions
9 years ago
Gustavo Jose de Sousa
6144226c51
AP_HAL: always define HAL_OS_SOCKETS
...
And avoid warnings.
9 years ago
Andrew Tridgell
2120913ac2
AP_HAL: added ObjectArray template
...
this is a ring buffer that supports indexing for efficient handling of
queue peeking and manipulation
9 years ago
Tom Pittenger
9718ee23d1
AP_HAL: fix peekbytes casting
9 years ago
Andrew Tridgell
1df2512935
AP_HAL: added update() method for object ringbuffer
...
to support updating objects for GCS work Tom is doing
9 years ago
Tom Pittenger
1d528d552f
AP_HAL: rename RingBuffer.force() to RingBuffer.push_force()
9 years ago
Andrew Tridgell
4ff396dfa8
AP_HAL: added force() and peek() method for object ringbuffers
9 years ago
Víctor Mayoral Vilches
9bb039accd
AP_HAL: PXFmini add HAL_BARO_MS5611_NAME
...
Peer coded with @LanderU .
9 years ago
Lucas De Marchi
1f072c4353
AP_HAL: fix unused variable
...
../../libraries/AP_HAL/examples/UART_test/UART_test.cpp:13:28: warning: ‘uarts’ defined but not used [-Wunused-variable]
static AP_HAL::UARTDriver* uarts[] = {
^
9 years ago
Lucas De Marchi
dbf2aedf1e
AP_HAL: replace header guard with pragma once
9 years ago
mirkix
d868fe4eff
AP_HAL: Remove unused GPIO leds for BBBmini
9 years ago
Lucas De Marchi
10abec277d
AP_HAL: functor: use std::remove_reference
9 years ago
Lucas De Marchi
02a7fa5c2b
AP_InertialSensor: MPU9250: use AP_HAL::Device abstraction
...
This makes MPU9250 be almost the same as MPU6000 driver. Work has been
done here to make than similar so it's easier to spot the differences.
9 years ago
Lucas De Marchi
af846636e4
AP_InertialSensor: MPU60x0: use AP_HAL::Device abstraction
9 years ago
Lucas De Marchi
f1ade970a3
AP_Baro: MS5611: Use AP_HAL::Device abstraction
...
This allows to share almost all the I2C/SPI code and remove the
AP_Serial abstraction since that is now handled by AP_HAL itself.
9 years ago
Lucas De Marchi
b05954660a
AP_Baro: BMP085: use I2CDevice interface
9 years ago
Lucas De Marchi
66f644c50d
AP_HAL: add interface for SPIDevice devices
...
In order to interoperate with SPIDeviceDriver this is re-using the same
SPIDeviceManager interface.
9 years ago
Lucas De Marchi
2250d9d768
AP_HAL: initialize I2C manager
...
Add I2CManager to AP_HAL's contructor.
9 years ago
Lucas De Marchi
f8e6c5b379
AP_HAL: add helper method to read registers
...
This just forwards to the transfer() method, avoiding the need in driver
code to have a similar method.
9 years ago
Lucas De Marchi
b4ff2d7595
AP_HAL: add helper method to write register
...
This just forwards to the transfer() method, avoiding the need in driver
code to have a similar method.
9 years ago
Lucas De Marchi
872b255384
AP_HAL: Add interface for I2CDevice
...
This is a new interface to replace I2CDriver in future, when all drivers
are converted.
9 years ago
Lucas De Marchi
0eb450d379
AP_HAL: Add interface for I2C/SPI devices
...
These interfaces are intended to abstract I2C and SPI devices for
drivers.
9 years ago
Lucas De Marchi
2e60e1b1f2
AP_HAL: utility: Add OwnPtr implementation
...
This is very similar to std::unique_ptr, but doesn't require including
the <memory> header which pulls lots of c++ headers and cause problems
with nuttx headers. It's header-only. It contains an explanation on what
it solves, how to use and unit tests.
9 years ago
Lucas De Marchi
9aa49cda93
Global: remove system_initializing() from scheduler
...
This is not used anymore.
9 years ago