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
2016-07-14 17:32:33 -03:00
Luiz Ywata
7fb5db8077
AP_HAL_Linux: RCOutput_Bebop: use I2CDevice interface
2016-07-14 17:32:33 -03:00
Andrew Tridgell
847bfda48a
HAL_Linux: adjust include ordering
2016-07-14 13:39:47 +10:00
Andrew Tridgell
dd5d0ffbad
HAL_Linux: use default module directory
2016-07-14 13:39:47 +10:00
Andrew Tridgell
107f76828d
HAL_Linux: added AP_Module support
2016-07-14 13:39:46 +10:00
Andrew Tridgell
beb3591f67
HAL_Linux: improved help output and errors for udp and bcast
2016-06-28 21:01:45 +10:00
Leandro Pereira
3555e439a4
AP_HAL_Linux: Simplify I2C initialization in HAL_Linux_Class
2016-05-20 10:12:17 -03:00
Lucas De Marchi
71e10c9132
AP_HAL_Linux: fix include order
...
Sort include alphabetically and make them in order:
Main header
system headers
library headers
local headers
While reordering, change a include of endian.h to our sparse-endian.h
which is more reliant to toolchain changes.
2016-05-18 23:05:56 -03:00
Lucas De Marchi
45c6b750f2
AP_HAL_Linux: remove ifdef checks for HAL_BOARD_LINUX
...
Everything inside libraries/AP_HAL_Linux is for Linux boards, there's
not need to add the ifdefs.
2016-05-18 23:05:56 -03:00
Lucas De Marchi
3315f46800
AP_HAL_Linux: inline I2C bus options for minlure
...
We don't need all the comments in the array declaration and we can
inline its declaration in the function call. This makes it easier to
copy it to other places.
2016-05-10 16:06:53 -03:00
Andrew Tridgell
c7dabad02c
HAL_Linux: added uartF
2016-04-20 09:39:49 +10:00
Lucas De Marchi
6a6175df1c
AP_HAL_Linux: move dirname to I2CDevice core
...
All entries would need the "devices/" prefix and it's more natural not
using it.
2016-03-17 02:55:31 -03:00
Staroselskii Georgii
a327a8779e
AP_HAL_Linux: added Navio2 support
2016-02-27 03:06:50 -03:00
Lucas De Marchi
69f6a73c19
Global: fix missing renames for HAL_BOARD_SUBTYPE_LINUX_ERLEBOARD
...
Commit b87fd58
(AP_HAL: ERLEBOARD legacy support) renamed the define but
forgot some around.
2016-02-19 12:35:18 -02:00
Lucas De Marchi
3ace8b52de
AP_HAL_Linux: use AnalogIn_IIO for minlure
2016-02-19 11:55:31 -02:00
Lucas De Marchi
e40785b002
AP_HAL_Linux: Add fake device to I2CDriver
...
This allows us to re-use I2CDevice from I2CDriver while the drivers are
converted. We create a fake device with addr = 0 for each I2CDriver but
we only use the register/unregister logic. The transfer logic still uses
the methods from I2CDriver in order to use the right address.
Now we can interoperate I2CDevice drivers with the ones base in
I2CDriver since they are going to use the same semaphore and bus.
The I2CDriver constructors were changed to re-use the logic in I2CDevice
(it uses a number rather than an string) and the semaphore doesn't live
outside anymore, its embedded in the fake I2CDevice, as well as the
bus's file descritor.
2016-02-16 19:49:09 -02:00
Lucas De Marchi
c394de31a0
AP_HAL_Linux: register I2CManager instance
2016-02-16 19:49:09 -02:00
mirkix
5b8de06beb
AP_HAL_Linux: Enable optical flow onboard for BBBMINI
2016-02-08 08:52:10 -02:00
Lucas De Marchi
21b2d5d34c
AP_HAL_Linux: AnalogIn_Raspilot: rename classes to follow other names
2016-02-01 14:18:51 -02:00
Lucas De Marchi
87e7704b1c
AP_HAL_Linux: ADS1115: rename classes to follow other names
...
While at it, remove some dead/commented-out code.
2016-02-01 14:18:51 -02:00
mirkix
c622ff1539
AP_HAL_Linux: Enable AnalogIN_IIO for BBBMINI
2016-01-28 13:44:43 -02:00
Lucas De Marchi
1fde473afc
AP_HAL_Linux: AnalogIn_IIO: normalize names
...
Use same name for file and classes, preferring AnalogIn_IIO over
IIOAnalogIn.
2016-01-11 15:44:24 -02:00
Víctor Mayoral Vilches
546fbd1f25
HAL_Linux: mv AnalogIn_PXF to AnalogIn_IIO
...
Initial implementation used for the PXF moved for
a wider use. The implementation uses the Linux Industrial
I/O Subsystem (IIO) to get Analog Input.
2016-01-11 15:44:24 -02:00
pkancir
506db4eaf5
AP_HAL_Linux: add ADC support for PXF cape
2016-01-11 15:44:24 -02:00
Ricardo de Almeida Gonzaga
7adbccac9a
AP_HAL_Linux: add support for OpticalFlow to MinnowBoardMax
...
This commit adds support for OpticalFlow to MinnowBoardMax trying to
leave the OpticalFlow implementation as generic as it already is.
We had to add some format conversion and software crop to the cameras that
do not have this features.
2016-01-11 15:31:27 -02:00
Víctor Mayoral Vilches
fa3dad928b
HAL_Linux: Add PXFmini to Linux_Class
2016-01-05 15:35:56 -02:00
Andrew Tridgell
dc8a3bbf92
HAL_Linux: added qflight board subtype
2015-12-27 16:12:27 +11:00
Aaron Wang Shi
ac08eece84
AP_HAL_Linux: instantiate BH hat objects
2015-12-21 15:54:31 +11:00
Julien BERAUD
6f55f3734c
AP_HAL_Linux: Add optflow declaration
...
Add an empty driver for boards that are not bebop
2015-12-18 17:56:05 +11:00
Lucas De Marchi
6011eefb55
AP_HAL_Linux: rename AP_HAL_Empty instances
2015-12-08 11:12:14 +11:00
Lucas De Marchi
2439826c19
AP_HAL_Linux: use init() method without arguments
...
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
2015-12-02 14:49:11 -02:00
Julien BERAUD
8c4803af10
AP_HAL_Linux: GPIO Sysfs for Bebop
...
copied from minlure implementation
2015-12-01 07:07:26 +11:00
Lucas De Marchi
1d51e60571
AP_HAL_Linux: move Util instantiation
...
The util object may be used by all other objects so we need to
instantiate it as earlier as possible.
2015-11-11 08:02:41 +11:00
Víctor Mayoral Vilches
d5d1bfae8c
AP_HAL_Linux: Adapt code to common RPI layer
2015-11-04 13:58:25 +11:00
Lucas De Marchi
cdaf67b749
AP_HAL_Linux: use PCA9685 for output in minlure
2015-10-22 12:04:53 +11:00
Lucas De Marchi
b75524a152
AP_HAL_Linux: use UART RC input for minlure
2015-10-22 12:04:53 +11:00
Lucas De Marchi
f72a5614d5
AP_HAL_Linux: add I2C buses for minlure
2015-10-22 12:04:53 +11:00
Lucas De Marchi
4992375bab
AP_HAL_Linux: add GPIO definitions for minlure
2015-10-22 12:04:52 +11:00
Lucas De Marchi
2ac96b942c
AP_HAL_Linux: remove prefix from AP_HAL_Linux classes
...
We have already a Linux namespace, so there's no need to prefix Linux on
all names.
2015-10-21 10:11:19 +11:00
Caio Marcelo de Oliveira Filho
3c22564307
AP_HAL_Linux: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
32dc822470
AP_HAL_Linux: implement HAL::run()
...
Added a note about the different ordering between setup callback and
scheduler initialized call.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
raspilot
aa4d16622e
HAL_Linux_Class: Init spi before rcin & rcout, because raspilot rcin & rcout use spi.
2015-10-02 09:54:55 +10:00
raspilot
5dc18b9a54
HAL_Linux_Class: Fix the broken declare of "LinuxUtilRPI utilInstance" at building raspilot.
2015-10-02 09:47:18 +10:00
Lucas De Marchi
fc2a1d27b4
AP_HAL_Linux: fix build for raspilot after Util change
...
Make sure raspilot also builds after making the Util class common for
RPI-based boards.
2015-09-24 15:31:32 +10:00
dgrat
15b3717d89
AP_HAL_Linux: Move RPi version check to util class
...
- Moved the version check functions to util.
- Removed a redundant version check.
- Removed redundant version check functions from RCInput.
2015-09-24 13:04:18 +10:00
raspilot
444081d38d
AP_HAL_Linux: added support for raspilot objects
2015-09-14 14:22:16 +10:00
Víctor Mayoral Vilches
728921f7c5
AP_HAL_Linux: ERLEBOARD legacy support
...
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards.
2015-09-09 10:31:55 +10:00
Fredrik Hedberg
d9a4b6b089
AP_HAL_Linux: Allow PCA9685 to be used on non-default I2C addresses.
2015-09-09 08:43:22 +10:00
Julien BERAUD
a057a8a009
AP_HAL_Linux: Add Support for RCInput_UDP
...
very simple protocol to receive RC cmds via UDP
Add support for it on the bebop
2015-09-07 12:10:08 +10:00