Lucas De Marchi
184b017b33
AP_HAL: fix warning from having undefined HAL_WITH_IO_MCU
...
In file included from ../../libraries/AP_IOMCU/AP_IOMCU.cpp:8:0:
../../libraries/AP_IOMCU/AP_IOMCU.h:10:5: warning: "HAL_WITH_IO_MCU" is not defined [-Wundef]
#if HAL_WITH_IO_MCU
^
../../libraries/AP_IOMCU/AP_IOMCU.cpp:10:5: warning: "HAL_WITH_IO_MCU" is not defined [-Wundef]
#if HAL_WITH_IO_MCU
^
And so on.
2018-02-02 09:11:46 +09:00
Andrew Tridgell
93a993c575
AP_HAL: setup RTSCTS and SBUS_OUT
2018-01-20 17:40:07 +11:00
Andrew Tridgell
d030f2888b
AP_HAL: added multi-object push to RingBuffer
...
this is much more efficient than pushing them one at a time
2018-01-20 17:40:07 +11:00
Peter Barker
87be7fea0c
AP_HAL: added support for Sparky2 STM23F405 board
2018-01-20 17:40:07 +11:00
Nikita Tomilov
a50e6c6dd7
AP_HAL: board: linux: Add default CAN interface name
2018-01-17 07:24:17 -08:00
Alexey Bulatov
09de8e852d
AP_HAL: Make methods get_UAVCAN and set_UAVCAN pure
2018-01-17 07:24:17 -08:00
Andrew Tridgell
3f5534eed5
AP_HAL: use calloc in preferance to malloc
2018-01-17 11:22:05 +11:00
Andrew Tridgell
4322ef7ca4
AP_HAL: prevent valgrind errors in EKF
...
ensure that EKF memory is zero on start
2018-01-17 11:22:05 +11:00
Andrew Tridgell
d2c04aa649
AP_HAL: moved board defines to hwdef.dat
2018-01-15 11:46:02 +11:00
Andrew Tridgell
2773b17fad
AP_HAL: added support for AP_Terrain for ChibiOS
2018-01-15 11:46:02 +11:00
Andrew Tridgell
c80149123f
AP_HAL: use hwdef.h for config options in chibios
2018-01-15 11:46:02 +11:00
Andrew Tridgell
8699b6233a
AP_HAL: support MindPX-v2
2018-01-15 11:46:02 +11:00
Andrew Tridgell
c7fd455f6a
AP_HAL: added FMUv4 port for ChibiOS
2018-01-15 11:46:02 +11:00
bugobliterator
9d6ab78376
AP_HAL: add support for memory allocation by region type
2018-01-15 11:46:02 +11:00
Andrew Tridgell
8260b3f65f
AP_HAL: allow bus speed and SMBUS enable on I2C
...
this allows a driver to request a bus speed for a device, and whether
the device should be in SMBUS mode. It also allows a min timeout to be
specified, to allow for slow devices
2018-01-15 11:46:02 +11:00
Andrew Tridgell
347c774665
AP_HAL: fixed example build on ChibiOS
2018-01-15 11:46:02 +11:00
Andrew Tridgell
391affc02d
AP_HAL: support ChibiOS
2018-01-15 11:46:02 +11:00
mirkix
0e7ade6f0c
AP_HAL: add new board PocketPilot
2017-12-27 16:01:55 +00:00
Mark Whitehorn
66c4b7d986
AP_HAL: support SBusOut
...
rename enable_sbus_out to enable_px4io_sbus_out
2017-11-30 10:20:04 +11:00
HeBin
895b5f34b8
AP_HAL: add Robsense PhenixPro Devkit Board support
2017-11-22 10:10:21 -08:00
Chinese66
700aaf2e8f
AP_HAL: add delay to UART_test example
...
For AC3.5 and higher version, serial uartA-USBconsole cannot work. Maybe the code before "setup" has been changed. Ensure that the uartA can be initialized
2017-11-22 09:05:17 +09:00
Georgii Staroselskii
6326e23682
AP_HAL: Navio: add defs for BoardLED
2017-11-17 09:20:55 -08:00
alexshirley
065b00eb81
AP_HAL: Remove SBUS macro from ocpoc target
2017-11-01 10:28:40 -07:00
Lucas De Marchi
7fd10921c3
AP_HAL: Linux: add define for storage dir
...
This mantains compatibility with what the boards were already using,
except for Aero and Minlure in which I'm changing it already as this is
desired.
2017-10-30 16:57:37 -07:00
Lucas De Marchi
591b846e2d
AP_HAL: switch aero and minlure to new log/terrain directory
...
Additionally make Edge use the default.
2017-10-30 16:57:37 -07:00
Lucas De Marchi
d2ba8409d0
AP_HAL: provide default directory for Linux boards
...
/var/lib/<project> is more in line to where projects save their data.
Also, remove APM from dir name as it should had been done some time
ago.
This is only the default (and recommended for any new board). Existing
boards that want to adopt the default can remove their defines.
2017-10-30 16:57:37 -07:00
Georgii Staroselskii
4e2028c32f
AP_HAL: Edge: enable Heat PWM
2017-10-20 13:03:08 -07:00
Georgii Staroselskii
db9f427617
AP_HAL: Edge: add compass settings
...
Use HMC5883L as default before UAVCAN Linux support is in place
2017-10-20 13:03:08 -07:00
Georgii Staroselskii
2dd68243a2
AP_HAL: add Edge support
2017-10-20 13:03:08 -07:00
Francisco Ferreira
be1f0801a3
AP_HAL: stop defining a default Lightware I2C bus
...
When a specific bus isn't defined we now search I2C buses 0 and 1
2017-10-09 11:57:02 +01:00
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.
2017-09-28 08:59:52 -07:00
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.
2017-09-28 08:59:52 -07:00
Lucas De Marchi
d3a1ed9792
AP_HAL: RCOutput_Tap: fix comment with protocol bits
2017-09-28 08:59:52 -07:00
Lucas De Marchi
58ae139b8f
AP_HAL: add possible external compasses for aero
2017-09-27 09:25:34 -07:00
Andrew Tridgell
08344557d9
AP_HAL: fixed missing LPS25H define
2017-09-27 16:42:31 +10:00
fnoop
149188de12
AP_HAL: Add size() method to RingBuffer ObjectArray
2017-09-22 09:56:00 -07:00
fnoop
3ddd9a6bca
AP_HAL: RingBuffer: Prefix private members with underscore
2017-09-22 09:55:49 -07:00
Lucas De Marchi
68b3e5ccab
AP_HAL: aero: define uart RCOutput_Tap
2017-09-21 07:59:20 -07:00
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.
2017-09-21 07:59:20 -07:00
Lucas De Marchi
58a76adc13
AP_HAL: RCOutput_Tap: allow different device to be used
2017-09-21 07:59:20 -07:00
Lucas De Marchi
f6b1099896
AP_HAL: move in tap esc implementation
...
This can be shared with Linux.
2017-09-21 07:59:20 -07:00
Peter Barker
68652867e1
AP_HAL: make in_main_thread public, pure and virtual
2017-09-19 09:40:11 +10:00
Lucas De Marchi
13f4ba7392
AP_HAL: remove raspilot
2017-09-12 15:06:19 -07:00
Francisco Ferreira
51a8aa3d1f
AP_HAL: remove URUS
2017-09-11 10:04:11 -07:00
davidaroyer
8862e76284
AP_HAL: add support for Aerotenna OcPoC-Zynq hardware
2017-09-08 07:30:49 -07:00
Lucas De Marchi
2c72fc94ba
AP_HAL: change aerofc baud to 921600
2017-09-01 07:55:47 -07:00
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.
2017-08-22 23:59:13 -07:00
Francisco Ferreira
e0f4d3dbe5
AP_HAL: remove unused HAL_AIRSPEED_MS4515DO_I2C_BUS macro
2017-08-05 03:15:53 +01:00
Lucas De Marchi
5ea1784838
global: remove AP_HAL::in_timerprocess()
...
This is not used and in the only places it would make sense would be
internally to the scheduler so remove it.
2017-08-03 20:25:14 -07:00
Lucas De Marchi
e98fe2d7d5
AP_HAL: RingBuffer: add missing include
2017-08-02 21:10:55 -07:00
Lucas De Marchi
61aed0f0d7
RingBuffer: example: integrate with build system
...
It's only compatible with Linux so for now disable the other boards.
2017-08-02 16:08:55 -07:00
Murilo Belluzzo
641671a366
AP_HAL: Add simple stress test for RingBuffer class
...
It runs a Producer/Consumer thread pair endless reading and writing a
ByteBuffer. Producer writes a number sequence that is twice the
ByteBuffer size so a given position have a different data on each write
pass. Consumer makes sure that this pattern is not broken and aborts the
program if it is.
It is possible to spawn more pairs by informing a number as argument of
the program.
2017-08-02 15:30:35 -07:00
Lucas De Marchi
dbd074b250
AP_HAL: remove register_timer_process with extra arg
2017-08-02 08:00:53 -07:00
Andrew Tridgell
0188d6463d
AP_HAL: added rcout set_detault_rate()
2017-07-24 14:07:28 +10:00
Kevin Lopez Alvarez
fb6f368575
AP_HAL: initial FMUv4pro support
2017-07-24 13:45:37 +10:00
Siddharth Bharat Purohit
807ba9d520
HAL: use correct datatype for time conversion
2017-07-13 18:23:00 -07:00
Peter Barker
c163915f6e
AP_HAL: correct storage example
2017-07-07 16:18:37 +01:00
Eugene Shamaev
8f2306fd19
AP_HAL: support of several CAN managers (virtual drivers)
2017-07-03 11:44:32 +01:00
Andrew Tridgell
94b5a9c6f0
AP_HAL: added RSSI interface for RCInput
2017-07-03 11:22:21 +10:00
Andrew Tridgell
1c741e78e6
AP_HAL: changed BRUSHED16kHz to BRUSHED
2017-06-17 17:37:45 +10:00
Andrew Tridgell
6a01494d4a
AP_HAL: fixed setting of HAL_MINIMIZE_FEATURES for FMUv3
2017-06-07 17:39:45 +10:00
Lucas De Marchi
eb70dbc6f5
AP_HAL: add HAL_OS_POSIX_IO for aerofc-v1
...
What aerofc-v1 doesn't have is an sdcard, but it has posix-like API as
it's running on top of NuttX.
2017-06-06 18:42:17 -07:00
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.
2017-06-02 11:26:02 -07:00
mirkix
478fb60a5b
AP_HAL: BeagleBone Blue fix HMC5843 I2C bus number
2017-06-01 17:11:34 +01:00
Lucas De Marchi
915f10dc8a
AP_HAL: SPIDevice: prefer nullptr for pointer
2017-04-19 01:36:58 -07:00
Vinicius Juvinski
203073e543
AP_HAL: add LEDs for BBBMini
...
Use pins P8.9, P8.10 and P8.11
2017-04-19 01:33:35 -07:00
hiro2233
1a8fa6ac5a
AP_HAL:SPIDevice: Added functions for spi registered device.
2017-04-19 01:05:12 -07:00
Peter Barker
18d8f9ba9d
AP_HAL: make get_custom_log_directory const
2017-04-19 00:11:49 -07:00
Pierre Kancir
34199b4af0
AP_HAL: example fix travis warning
...
missing function declaration
implicit cast
some style fix
2017-04-13 19:56:16 +01:00
Tom Pittenger
1e84e07edc
AP_HAL: remove HAL_CPU_CLASS_16
2017-04-12 17:25:30 -07:00
Eugene Shamaev
d1792689f1
AP_HAL/utility: clear added to RingBuffer
2017-04-10 21:31:07 +01:00
Eugene Shamaev
a07033f938
AP_HAL: ESC scaling
2017-04-10 21:31:07 +01:00
Eugene Shamaev
9b98c304c4
AP_HAL: top level HAL definitions for CAN bus driver
2017-04-10 21:31:07 +01:00
Andrew Tridgell
7cd290af9b
AP_HAL: added defaults offsets max for disco
2017-04-10 19:17:37 +10:00
Lucas De Marchi
f91d23daab
AP_HAL: add HAL_PX4_HAVE_PWM_INPUT
2017-03-24 12:06:19 +11:00
Lucas De Marchi
7ca9c7a443
AP_HAL: add HAL_HAVE_SAFETY_SWITCH
2017-03-24 12:06:19 +11:00
Lucas De Marchi
d3e9f7ce66
AP_HAL: add HAL_PX4_HAVE_PX4IO
2017-03-24 12:06:19 +11:00
Lucas De Marchi
7f5b551050
AP_HAL: add HAL_PX4_HAVE_MTD_SUPPORT
2017-03-24 12:06:19 +11:00
Lucas De Marchi
c7fc3ffbc4
AP_HAL: add HAL_HAVE_BOARD_VOLTAGE
2017-03-24 12:06:19 +11:00
Lucas De Marchi
37a050eed9
AP_HAL: add comments and allow for board overrides
2017-03-24 12:06:19 +11:00
Lucas De Marchi
a682bb837a
AP_SerialManager: uartA with 460800 baud for aerofc
2017-03-24 12:06:19 +11:00
Lucas De Marchi
20c5e9ec08
Add support for external mag on aerofc
2017-03-24 12:06:19 +11:00
Lucas De Marchi
00c2949dfb
Add support for baro on aerofc
2017-03-24 12:06:19 +11:00
Lucas De Marchi
b17acfee12
Add aerofc support
...
Flight Controller board that comes on Intel Aero RTF Drone.
2017-03-24 12:06:19 +11:00
mirkix
81da61a68d
AP_HAL: BBBmini remove onboard OpticalFlow
2017-03-07 22:48:48 -08:00
Lucas De Marchi
686e0f08d6
AP_HAL: RCOutput: add optional timer_tick() method
...
This is common enough across the HAL implementaions so add a method for
it to avoid the need for casts inside the HALs.
2017-02-26 13:38:24 +11:00
Lucas De Marchi
8002df6e45
AP_HAL: add MPU6500 defines
2017-02-26 13:37:13 +11:00
Lucas De Marchi
0a381dfa1b
AP_HAL: document method to split transfers
2017-02-23 22:38:15 -08:00
Andrew Tridgell
dc26cbc074
AP_HAL: added set_split_transfers() API for I2C
2017-02-23 22:38:15 -08:00
Peter Barker
8f478a62d7
AP_HAL: remove HAL_PARAM_DEFAULTS_PATH for SITL
...
This will remove the warning at startup that etc/defaults isn't
found, which just confuses matters when things aren't working
2017-02-09 21:00:43 +11:00
Andrew Tridgell
2bb1043c23
AP_HAL: added HAL_MINIMIZE_FEATURES
...
this is used to select a minimal build to save flash space on FMUv2
2017-01-29 16:31:06 +11:00
murata
03bf57219b
AP_HAL: Unify from print or println to printf.
2017-01-27 18:20:22 +11:00
Lucas De Marchi
a73c1daa2e
AP_HAL: Device: remove unused function to read registers
...
Callers can use be16toh(), be32toh(), etc. There's no need to have a
special function here for each type.
2017-01-26 23:18:27 -08:00
Lucas De Marchi
14519e90ff
AP_HAL: Device: remove trailing whitespaces
2017-01-26 23:18:27 -08:00
mirkix
093407e8e8
AP_HAL: Add BeagleBone Blue
2017-01-26 23:15:52 -08:00
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.
2017-01-23 21:23:16 +11:00
Julien Beraud
4646428ac0
AP_HAL: remove ahrs cb from opticalflow
...
Not needed anymore
2017-01-23 21:23:16 +11:00
Julien Beraud
8a57e1a4a7
AP_HAL: Add methods for optical flow
...
Add methods to push gyro and gyro biases to perform a good
optical flow
2017-01-23 21:23:16 +11:00
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.
2017-01-18 18:08:01 +00:00
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.
2017-01-18 18:08:01 +00:00