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.
2016-07-29 15:01:14 -03:00
Lucas De Marchi
cbbd6f9d78
AP_HAL_Linux: SPIDevice: implement fullduplex transfer
2016-07-29 15:01:14 -03:00
Luiz Ywata
7ded01cf24
AP_HAL_Linux: SPIUARTDriver: use SPIDevice interface
2016-07-29 15:01:14 -03:00
Luiz Ywata
c8bb5e6469
AP_HAL_Linux: RCInput_Raspilot use SPIDevice interface
2016-07-29 15:01:14 -03:00
Luiz Ywata
e8d3229492
AP_HAL_Linux: RPIOUARTDriver: use SPIDevice interface
2016-07-29 15:01:14 -03:00
Luiz Ywata
bfd840c5ca
AP_HAL_Linux: RCOutput_Raspilot: use SPIDevice interface
2016-07-29 15:01:14 -03:00
Lucas De Marchi
86ac9bc367
AP_HAL_Linux: AnalogIn_Raspilot: use SPIDevice interface
2016-07-29 14:47:04 -03:00
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.
2016-07-29 14:47:04 -03:00
Lucas De Marchi
73bb371918
AP_HAL_Linux: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:56 -03:00
Lucas De Marchi
84f45f09a3
AP_HAL_Linux: convert CameraSensor_Mt9v117 to I2CDevice
2016-07-28 18:03:09 -03:00
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.
2016-07-28 16:42:38 -03:00
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.
2016-07-28 16:42:38 -03:00
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.
2016-07-27 21:30:19 +10:00
Staroselskii Georgii
8d2b587f71
AP_HAL_Linux: RPI: set signal handler iff nobody has already done it before
2016-07-27 21:30:19 +10:00
Staroselskii Georgii
5e8edcb1db
AP_HAL_Linux: use NSIG instead of a hardcoded number in RCInput_RPI
2016-07-27 21:30:19 +10:00
hiro2233
3ae36c4a6c
AP_HAL_Linux:RCInput: Minimun input channels defined
2016-07-27 00:55:55 -03:00
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.
2016-07-21 16:05:03 -03:00
Lucas De Marchi
b23f7a8be4
AP_HAL_Linux: examples: remove BusTest
...
This needs to be rewritten using the probe methods.
2016-07-21 16:05:03 -03:00
Andrew Tridgell
96095b0942
HAL_Linux: fixed comment typo for SBUS input
2016-07-20 13:38:17 +10:00
Andrew Tridgell
b69170febd
HAL_Linux: fixed build for Disco with I2C changes
2016-07-20 13:38:17 +10:00
Andrew Tridgell
f5a20d28bc
HAL_Linux: fixed comment in SBUS
2016-07-20 13:38:17 +10:00
Andrew Tridgell
a78b875ec3
HAL_Linux: fixed ULTRASOUND GPIO for Disco
2016-07-20 13:38:17 +10:00
Andrew Tridgell
1d8e4cdea9
HAL_Linux: added debugging line for Heat_Pwm
2016-07-20 13:38:17 +10:00
Andrew Tridgell
55d692708b
HAL_Linux: fixed set_esc_scaling on Disco
2016-07-20 13:38:16 +10:00
Andrew Tridgell
298f7bffb9
HAL_Linux: fixed motor output for Disco
2016-07-20 13:38:16 +10:00
Andrew Tridgell
9b057ee4f1
HAL_Linux: separate out the GPIO table for Disco
2016-07-20 13:38:16 +10:00
Andrew Tridgell
677a38a10a
HAL_Linux: make SBUS input much more robust
...
use inter-frame gap to resync after byte loss
2016-07-20 13:38:16 +10:00
Andrew Tridgell
29135a0158
HAL_Linux: use termios2 for SBUS RCOUT on Disco
2016-07-20 13:38:16 +10:00
Andrew Tridgell
a40d704126
HAL_Linux: added RCOutput_Disco
...
combines Sysfs and Bebop RCOutput code
2016-07-20 13:38:16 +10:00
Andrew Tridgell
cf83a43b56
HAL_Linux: support SBUS input on Disco
2016-07-20 13:38:16 +10:00
Andrew Tridgell
aaaa6d38c7
HAL_Linux: initial support for Disco
2016-07-20 13:35:51 +10:00
Staroselskii Georgii
a1f151a79b
AP_HAL_Linux: do not create unnecessary consoles in UARTDriver
2016-07-15 15:31:19 -03:00
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.
2016-07-15 15:29:05 -03:00
Staroselskii Georgii
0ca635bfb8
AP_HAL_Linux: close() console in dtor
2016-07-15 15:28:10 -03:00
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.
2016-07-15 15:26:49 -03:00
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.
2016-07-15 15:22:51 -03:00
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.
2016-07-15 14:56:00 -03:00
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.
2016-07-14 17:32:33 -03:00
Luiz Ywata
3e765e23a9
AP_HAL_Linux: RCOutput_PCA9685: use I2CDevice interface
2016-07-14 17:32:33 -03:00
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
f090e9b27c
HAL_Linux: fixed makefile build with PRIu64
2016-07-07 15:10:59 +10:00
Andrew Tridgell
461c159b22
HAL_Linux: use set_imu_target_temp() API
2016-07-01 15:29:52 +10:00
Andrew Tridgell
beb3591f67
HAL_Linux: improved help output and errors for udp and bcast
2016-06-28 21:01:45 +10:00
Andrew Tridgell
72b5cecdb2
HAL_Linux: added udpin support to HAL_Linux
...
useful for setting up ardupilot as a mavlink UDP listener
2016-06-28 21:01:43 +10:00
Gustavo Jose de Sousa
d35cf60ce1
AP_HAL_Linux: I2CDevice: use read flag in read_registers_multiple
...
Use the generic support in Device interface for read flag when we are
using read_registers_multiple() method.
2016-06-27 17:20:46 -03:00
Lucas De Marchi
b70b9ed8d1
AP_HAL_Linux: fix warning on 64b printf
...
../../libraries/AP_HAL_Linux/Perf.cpp: In member function ‘void Linux::Perf::_debug_counters()’:
../../libraries/AP_HAL_Linux/Perf.cpp:85:36: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
c.name, c.count);
^
2016-06-25 12:05:55 -03:00