Julien Beraud
c31522c2c3
AP_HAL_Linux: fix focal lengths calculation
...
Fixed focal length on bebop due to wrong spec.
Fix comment that had a typo.
Fixed focal length calculations on other boards that were mislead
by the typo.
8 years ago
Julien Beraud
4646428ac0
AP_HAL: remove ahrs cb from opticalflow
...
Not needed anymore
8 years ago
Julien Beraud
8a57e1a4a7
AP_HAL: Add methods for optical flow
...
Add methods to push gyro and gyro biases to perform a good
optical flow
8 years ago
Mathieu OTHACEHE
bad1c879d9
AP_HAL: Bebop & Disco: move default param file path
...
In future Bebop & Disco releases, no ardupilot binary nor default param file
will be provided.
So move HAL_PARAM_DEFAULTS_PATH to ardupilot folder in RW memory.
8 years ago
Mathieu OTHACEHE
fdb2a9c99b
AP_HAL: Bebop & Disco: rename APM to ardupilot in paths
...
Rename APM to ardupilot for Bebop and Disco's HAL_BOARD_LOG_DIRECTORY and
HAL_BOARD_TERRAIN_DIRECTORY.
8 years ago
Pierre Kancir
e627bbc912
AP_HAL: Board fix typo for baro BMP280_SPI
8 years ago
mirkix
4e06be38ac
AP_HAL: Add Bosch BMP280 driver
8 years ago
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
8 years ago
Andrew Tridgell
9b7f0f7957
AP_HAL: make new_input() API clearer in comments
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
Randy Mackay
a2f6d7c102
AP_HAL: minor comment fix to Device.h
8 years ago
Andrew Tridgell
29bc07f410
AP_HAL: setup for building ucavcan on FMUv3 but not FMUv2
...
save a lot of flash space on FMUv2
8 years ago
Andrew Tridgell
bd0a0510ed
AP_HAL: define FMUv3
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
Andrew Tridgell
c657ad449b
AP_HAL: added get_bus_address()
...
used to report sensor probing results in drivers
8 years ago
Andrew Tridgell
60c29417f1
AP_HAL: added uint16 access functions
8 years ago
mirkix
7e33ba04a9
AP_HAL: Add BBBmini PX4FLOW I2C bus number
8 years ago
Andrew Tridgell
28a318145c
AP_HAL: move set_retries() up to Device class
...
we really need set_retries() high during init for nearly all i2c
devices, and as many are written against the generic device class
moving it to the Device class makes this a lot easier. It is a NOP on
SPI.
8 years ago
Andrew Tridgell
fac8f1db03
AP_HAL: added MODE_PWM_BRUSHED16KHZ
8 years ago
Andrew Tridgell
00ccacb2ab
AP_HAL: expose device bus number
8 years ago
Andrew Tridgell
a96ed8c188
AP_HAL: added virtual destructor for Semaphores
8 years ago
Andrew Tridgell
fdc94ec28a
AP_HAL: fixed frequency init for register checking
8 years ago
Andrew Tridgell
954728c9e9
AP_HAL: added set_chip_select() API
...
for devices with unusual timings
8 years ago
Andrew Tridgell
7100272f14
AP_HAL: default to register checking every 10th call
...
this saves having this in nearly all callers
8 years ago
Andrew Tridgell
e42bb20052
AP_HAL: added dma allocation routines to hal.util
8 years ago
Andrew Tridgell
5934a099a4
AP_HAL: added support for more SRXL varients
...
based on work by Roman Seb <roman-29188@gmx.de>
8 years ago
Andrew Tridgell
14a26bee6c
AP_HAL: fixed ms5611 address on FMUv1
8 years ago
Andrew Tridgell
bc614de4b3
AP_HAL: added checked registers interface
...
allow drivers to easily monitor and correct critical registers
8 years ago
Andrew Tridgell
c565c9df35
AP_HAL: added ICM20608 external SPI name
8 years ago
Andrew Tridgell
fd8955a737
AP_HAL: define default rotations for mpu6000 based boards
8 years ago
Andrew Tridgell
d778ee2db0
AP_HAL: define device for icm20608 on ACCEL_MAG CS line on px4
...
for PHMINI
8 years ago
Andrew Tridgell
ba9b475782
AP_HAL: added MS5611 on I2C for px4-v1
8 years ago
Andrew Tridgell
ea74f8c12c
AP_HAL: added ICM20608 INS name
8 years ago
Andrew Tridgell
38a1f51b53
AP_HAL: define rotations for the MPU9250 in board/linux.h
8 years ago
Andrew Tridgell
1990aa96e1
AP_HAL: added get_bus_id_devtype()
...
used to do versioning on device types
8 years ago
Andrew Tridgell
3d48b6bb3a
AP_HAL: added device id tuples to Device class
...
this allows a bus connection and device type tuple to be identifed as
a 24 bit number for use in user visible device IDs. Every bus
connection has a unique device ID.
8 years ago
Andrew Tridgell
26ca2dd392
AP_HAL: added more px4 SPI device names
8 years ago
Andrew Tridgell
a06137bb68
AP_HAL: define 9250 devices
8 years ago
Andrew Tridgell
bf0b0c1773
AP_HAL: fixed HAL_SEMAPHORE_BLOCK_FOREVER to be zero
...
all implementations assume this
8 years ago
Andrew Tridgell
b697c978e6
AP_HAL: fixed lsm303d SPI name
8 years ago
Andrew Tridgell
e79b4f1c11
AP_HAL: added defines for ms5611 on other SPI buses
8 years ago
Andrew Tridgell
5db65cdb6d
AP_HAL: added subtype for PX4 FMUv4
8 years ago
Andrew Tridgell
3927994905
AP_HAL: added SPI device names to px4
8 years ago
Andrew Tridgell
4d5562764a
AP_HAL: provide default hmc5983 i2c bus address
8 years ago
Lucas De Marchi
7968736b1c
AP_HAL: add O_CLOEXEC in places missing it
...
By opening with O_CLOEXEC we make sure we don't leak the file descriptor
when we are exec'ing or calling out subprograms. Right now we currently
don't do it so there's no harm, but it's good practice in Linux to have
it.
8 years ago
Lucas De Marchi
312a27dd20
AP_HAL: RCInput: rename deinit() to teardown()
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
8 years ago
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