Lucas De Marchi
7b39f3d0a7
AP_HAL_Linux: do not warn for empty table
...
../../libraries/AP_HAL_Linux/SPIDevice.cpp: In member function ‘virtual AP_HAL::OwnPtr<AP_HAL::SPIDevice> Linux::SPIDeviceManager::get_device(const char*)’:
../../libraries/AP_HAL_Linux/SPIDevice.cpp:337:27: warning: comparison is always false due to limited range of data type [-Wtype-limits]
for (uint8_t i = 0; i < _n_device_desc; i++) {
~~^~~~~~~~~~~~~~~~
Define a dummy device to remove warning.
2016-07-30 00:03:23 -03:00
Lucas De Marchi
f37a560295
AP_HAL_Linux: remove private headers
...
This centralized private 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.
2016-07-29 20:29:46 -03:00
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.
2016-07-29 20:27:12 -03:00
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.
2016-07-29 20:25:03 -03:00
Lucas De Marchi
b044fac4b6
AP_HAL_Linux: rename variable to follow I2CDevice convention
2016-07-29 15:01:15 -03:00
Lucas De Marchi
57ec968b44
AP_HAL: remove SPIDriver
...
SPIDevice now controls all accesses to SPI bus.
2016-07-29 15:01:15 -03:00
Lucas De Marchi
dc91dfb446
AP_HAL_Empty: remove SPIDriver
...
SPIDevice now controls all accesses to SPI bus.
2016-07-29 15:01:15 -03:00
Lucas De Marchi
7b140da6d1
AP_HAL_Linux: remove SPIDriver
...
SPIDevice now controls all accesses to SPI bus.
2016-07-29 15:01:15 -03:00
Lucas De Marchi
5ab1c6ff51
AP_ADC: remove ADS7844
...
It's not used by any board.
2016-07-29 15:01:15 -03:00
Lucas De Marchi
ef81e71afa
AP_ADC: remove example tailored to a single ADC
...
This is the only user of ADS7844 - we don't have it actually used in our
boards. Remove the example since we can later add a more generic one or
at least one that reuses a driver from our boards.
2016-07-29 15:01:15 -03:00
Lucas De Marchi
3a5e8a17c7
AP_HAL: remove enum id for Ublox and RASPIO
2016-07-29 15:01:15 -03:00
Lucas De Marchi
945556bbc3
AP_HAL_Linux: remove id for SPIDevice_Ublox and RASPIO
2016-07-29 15:01:15 -03:00
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.
2016-07-29 15:01:15 -03:00
Lucas De Marchi
e3c0476b8a
AP_HAL_Linux: SPIUARTDriver: initialize device once
2016-07-29 15:01:14 -03:00
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
Lucas De Marchi
9fda608d4a
AP_HAL_Empty: SPIDevice: implement fullduplex transfer
2016-07-29 15:01:14 -03:00
Lucas De Marchi
01452bf922
AP_HAL: SPIDevice: add fullduplex method
...
This method is needed when we want to transfer both tx and rx at the
same time, as opposed to common cases for sensors in which they are like
in the I2C interface: half-duplex.
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
81345cc112
AP_HAL: Remove enum for Dataflash
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
Peter Barker
9749b91d46
SITL: initialise sigaction structs - valgrind fix
2016-07-29 10:38:03 -03:00
Jonathan Challinger
d1ecc63bf1
AP_NavEKF2: change priority of statustext messages
2016-07-29 13:19:51 +09:00
Lucas De Marchi
1841313f73
AP_HAL_VRBRAIN: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:57 -03:00
Lucas De Marchi
d418338e22
AP_HAL_SITL: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:57 -03:00
Lucas De Marchi
13848f0f3f
AP_HAL_QURT: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:57 -03:00
Lucas De Marchi
2ef78051c1
AP_HAL_PX4: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:56 -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
3eb0a48d59
AP_HAL_Empty: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:56 -03:00
Lucas De Marchi
b21ad36676
AP_HAL: remove I2CDriver
2016-07-28 18:08:56 -03:00
Lucas De Marchi
8f11bf7373
AP_ADC: ADS1115: fix typo
2016-07-28 18:05:45 -03:00
Lucas De Marchi
4595a2b7d8
AP_Compass: Remove i2c lockup count
...
This was returned only for a single bus and on all supported platforms
this is hardcoded to 0.
2016-07-28 18:03:09 -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
Tom Pittenger
59135fc615
AP_ADSB: fixed comment for default chan -1 means transceiver is not detected
2016-07-28 09:41:38 -07:00
Andrew Tridgell
c6d3f07b5f
AP_RPM: provide an RPM quality in SITL
2016-07-28 12:39:07 +10: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
Staroselskii Georgii
d69aeb4808
AP_HAL_SITL: use sigaction over signal API in SITL_State
2016-07-27 21:30:19 +10:00
Randy Mackay
d19c074ba1
AP_ADC_ADS1115.h: changed member declaration order to resolve compiler warning
...
No functional change
2016-07-27 13:39:32 +09:00
hiro2233
3ae36c4a6c
AP_HAL_Linux:RCInput: Minimun input channels defined
2016-07-27 00:55:55 -03:00
hiro2233
4a6447575c
AP_HAL: fixed and updated RCInput example.
2016-07-27 00:52:13 -03:00
Andrew Tridgell
9df58e1e0a
AP_Arming: don't show the GPS arming error in SITL
...
it just makes users think something is wrong
2016-07-27 07:46:04 +10:00
Lucas De Marchi
a159eedd8c
AP_RangeFinder: fix bus for Lightware on some boards
2016-07-26 00:52:54 -03:00