Lucas De Marchi
e8f71a5bd2
AP_HAL_Linux: change define and members visibility
...
Make some member variables protected to follow what we do in other
places (and there's no reason to be private).
Move defines to .cpp to reduce their visibility.
9 years ago
Lucas De Marchi
f36e8d9c05
AP_HAL_Linux: remove AP_HAL_Linux_Namespace header
...
This centralized namespace header encourages centralizing things on
umbrella headers that are a pain to maintain. Force each part of
AP_HAL_Linux to include what is used.
While at it, do some whitespace cleanups and minor changes to adhere to
coding style.
9 years ago
Lucas De Marchi
b044fac4b6
AP_HAL_Linux: rename variable to follow I2CDevice convention
9 years ago
Lucas De Marchi
7b140da6d1
AP_HAL_Linux: remove SPIDriver
...
SPIDevice now controls all accesses to SPI bus.
9 years ago
Lucas De Marchi
945556bbc3
AP_HAL_Linux: remove id for SPIDevice_Ublox and RASPIO
9 years ago
Lucas De Marchi
065592e7df
AP_HAL_Linux: SPIUARTDriver: add some cosmetic changes
...
Mainly changes to follow the coding style and reduce the complexity a
little bit.
9 years ago
Lucas De Marchi
e3c0476b8a
AP_HAL_Linux: SPIUARTDriver: initialize device once
9 years ago
Lucas De Marchi
418cc817a3
AP_HAL_Linux: SPIUARTDriver: fix conversion to SPIDevice
...
We need to use the fullduplex method to transfer both tx and rx at the
same time.
9 years ago
Lucas De Marchi
cbbd6f9d78
AP_HAL_Linux: SPIDevice: implement fullduplex transfer
9 years ago
Luiz Ywata
7ded01cf24
AP_HAL_Linux: SPIUARTDriver: use SPIDevice interface
9 years ago
Luiz Ywata
c8bb5e6469
AP_HAL_Linux: RCInput_Raspilot use SPIDevice interface
9 years ago
Luiz Ywata
e8d3229492
AP_HAL_Linux: RPIOUARTDriver: use SPIDevice interface
9 years ago
Luiz Ywata
bfd840c5ca
AP_HAL_Linux: RCOutput_Raspilot: use SPIDevice interface
9 years ago
Lucas De Marchi
86ac9bc367
AP_HAL_Linux: AnalogIn_Raspilot: use SPIDevice interface
9 years ago
Lucas De Marchi
8681d23cbd
AP_HAL_Linux: remove unused Dataflash
...
This is selectable by a define and is never changed. Just remove
everything referencing it: we can come up with a better solution if it
is actually used later.
9 years ago
Lucas De Marchi
73bb371918
AP_HAL_Linux: remove I2CDriver
...
I2CDevice now serves for the same purpose.
9 years ago
Lucas De Marchi
84f45f09a3
AP_HAL_Linux: convert CameraSensor_Mt9v117 to I2CDevice
9 years ago
Lucas De Marchi
9acffc8868
AP_HAL_Linux: use Empty version if not implemented
...
There's little point in having the Linux::AnalogIn just to implement and
empty interface. All implementations inside AP_HAL_Linux are already
inheriting directly from AP_HAL, so just remove it.
9 years ago
Lucas De Marchi
47d2f8dc6d
AP_HAL_Linux: AnalogIn_ADS1115: return 5V on board_voltage
...
board voltage is not available - don't return 0V since that prevents
arming.
9 years ago
Staroselskii Georgii
4ca1b58408
AP_HAL_Linux: add ConsoleDevice a handler for TTIN signal
...
In a case ArduPilot is launched as a background process without
detaching with *nohup* like this ./arduplane -C /dev/ttyAMA0 ConsoleDevice
is created and an attempt to read from it is made. This yields in a stopped
process. This is an endeavour to overcome this problem.
9 years ago
Staroselskii Georgii
8d2b587f71
AP_HAL_Linux: RPI: set signal handler iff nobody has already done it before
9 years ago
Staroselskii Georgii
5e8edcb1db
AP_HAL_Linux: use NSIG instead of a hardcoded number in RCInput_RPI
9 years ago
hiro2233
3ae36c4a6c
AP_HAL_Linux:RCInput: Minimun input channels defined
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
Lucas De Marchi
b23f7a8be4
AP_HAL_Linux: examples: remove BusTest
...
This needs to be rewritten using the probe methods.
9 years ago
Andrew Tridgell
96095b0942
HAL_Linux: fixed comment typo for SBUS input
9 years ago
Andrew Tridgell
b69170febd
HAL_Linux: fixed build for Disco with I2C changes
9 years ago
Andrew Tridgell
f5a20d28bc
HAL_Linux: fixed comment in SBUS
9 years ago
Andrew Tridgell
a78b875ec3
HAL_Linux: fixed ULTRASOUND GPIO for Disco
9 years ago
Andrew Tridgell
1d8e4cdea9
HAL_Linux: added debugging line for Heat_Pwm
9 years ago
Andrew Tridgell
55d692708b
HAL_Linux: fixed set_esc_scaling on Disco
9 years ago
Andrew Tridgell
298f7bffb9
HAL_Linux: fixed motor output for Disco
9 years ago
Andrew Tridgell
9b057ee4f1
HAL_Linux: separate out the GPIO table for Disco
9 years ago
Andrew Tridgell
677a38a10a
HAL_Linux: make SBUS input much more robust
...
use inter-frame gap to resync after byte loss
9 years ago
Andrew Tridgell
29135a0158
HAL_Linux: use termios2 for SBUS RCOUT on Disco
9 years ago
Andrew Tridgell
a40d704126
HAL_Linux: added RCOutput_Disco
...
combines Sysfs and Bebop RCOutput code
9 years ago
Andrew Tridgell
cf83a43b56
HAL_Linux: support SBUS input on Disco
9 years ago
Andrew Tridgell
aaaa6d38c7
HAL_Linux: initial support for Disco
9 years ago
Staroselskii Georgii
a1f151a79b
AP_HAL_Linux: do not create unnecessary consoles in UARTDriver
9 years ago
Staroselskii Georgii
7b3a5e3158
AP_HAL_Linux: use factory method for creation of UARTDriver backends
...
Using factory method maked it easier to grasp the lifetime of all object
that get created and destroyed. Instead of spanning this thoughout whole
source file we have it nicely encapsulated in this a little horrendeous
_parseDevicePath that is of course to improve more.
9 years ago
Staroselskii Georgii
0ca635bfb8
AP_HAL_Linux: close() console in dtor
9 years ago
Staroselskii Georgii
e7a5945056
AP_HAL_Linux: make flow_control a property of SerialDevice rather than UARTDriver's
...
Make it possible to change flow control settings for individual devices.
9 years ago
Staroselskii Georgii
897d2fb1fb
AP_HAL_Linux: use OwnPtr for _device in UARTDriver
...
Otherwise we're going to leak memory without any need.
Before this fix we've created ConsoleDevice 4 times in case -A switch hadn't been supplied,
but we hadn't ever deleted those. Now there's no memory leak here.
9 years ago
Staroselskii Georgii
3f1e999fc8
AP_HAL_Linux: remove ConsoleDevice construction from UARTDriver constructor
...
Since we're going to create ConsoleDevice in UARTDriver either way,
there's no need to do anything except setting the console flag.
9 years ago
Lucas De Marchi
24cdef24b8
AP_HAL_Linux: remove wrong ifdef
...
This was added when the support for navio2 went in, but the same ifdef
is already on the lines above.
9 years ago
Luiz Ywata
3e765e23a9
AP_HAL_Linux: RCOutput_PCA9685: use I2CDevice interface
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
Andrew Tridgell
847bfda48a
HAL_Linux: adjust include ordering
9 years ago
Andrew Tridgell
dd5d0ffbad
HAL_Linux: use default module directory
9 years ago