Julien Beraud
fdb43fdc6a
Frame_Params: fix param name for bebop
...
Change-Id: Id1c16e11e68f0004019afc885acf0e0f119b78b7
2016-07-15 12:25:17 -03:00
Andrew Tridgell
1b8da3bce2
HAL_PX4: implement I2CDevice driver for PX4
2016-07-15 12:24:03 -03:00
Andrew Tridgell
fc41e0e44e
PX4: updated elf of bootloaders to match
...
for factory load
2016-07-15 11:49:59 +10:00
Andrew Tridgell
2d3fef72cd
PX4: updated bootloaders
2016-07-15 08:35:36 +10:00
Luiz Ywata
1f0f36d603
AP_Notify: NavioLED_I2C: use I2CDevice interface
2016-07-14 17:32:33 -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
Luiz Ywata
d5449a6f20
AP_HAL: Add read method
...
Provide a more intuitive api for reading an I2CDevice.
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
Lucas De Marchi
a34a5c1aa3
AP_Notify: Display_SSD1306_I2C: Fix after conversion to I2CDevice
...
- Initialize device on hw_init() method, allowing it not to be
present
- Add missing lock
- Add packed attribute to structs
- Move defines to source file
2016-07-14 17:32:33 -03:00
Luiz Ywata
f26692de92
AP_Notify: Display_SSD1306_I2C: use I2CDevice interface
2016-07-14 17:32:33 -03:00
Lucas De Marchi
213c38afaf
AP_Notify: ToshibaLED_I2C: add part number comment
...
It's easier to find the datasheet for this driver with the part number
rather than a generic "toshiba led".
2016-07-14 17:32:33 -03:00
Lucas De Marchi
5618008935
AP_Notify: ToshibaLED_I2C: Fix driver after I2CDevice conversion
...
- Add missing semaphore take on bus
- Initialize device on init function rather than constructor: the
constructor may run before I2CDeviceManager is initialized since our
AP_Notify objects are static so it can't be used.
2016-07-14 17:32:33 -03:00
Luiz Ywata
0b69e43464
AP_Notify: ToshibaLED_I2C: use I2CDevice interface
2016-07-14 17:32:32 -03:00
Lucas De Marchi
e5d519edec
AP_ADC: AP_ADC_ADS1115: release bus lock as soon as possible
2016-07-14 17:32:32 -03:00
Lucas De Marchi
85c0c98194
AP_ADC: ADS1115: fix driver after conversion to I2CDevice
...
In _start_conversion(), the check for return code of _dev->transfer() was
inverted. The structure also needs to be PACKED, otherwise there will be
a hole in the middle. Fix these issues and use be16_t where it makes
sense.
In read() we need to check for the second byte of config register, so
either make it an array of uint8_t or convert from big endian to host
endianness. It's simpler to leave it as it was, accessing just the
first byte. Also the conversion value is in be16 type an needs to be
converted to host endiannes, not the opposite.
Fix bus number: all boards that use it expect it to be on bus 1, not 0.
2016-07-14 17:32:32 -03:00
Luiz Ywata
038389f583
AP_ADC_ADS1115: use I2CDevice interface
2016-07-14 17:32:32 -03:00
Lucas De Marchi
de5025a46f
AP_Airspeed: I2C: fix after conversion to I2CDevice
...
- Allow to fail init
2016-07-14 17:32:32 -03:00
Luiz Ywata
6c87b2aa7c
AP_Airspeed: AP_Airspeed_I2C: use I2CDevice interface
2016-07-14 17:32:32 -03:00
Lucas De Marchi
5ef1568137
AP_HAL_Empty: fix sitl
...
Sitl or anyone using AP_HAL_Empty implementation doesn't have any
I2CDevice, so it's pointless to return an empty one.
2016-07-14 17:32:32 -03:00
Gustavo Jose de Sousa
849a83315a
waf: git_submodule: fix for Waf 1.9
...
Tasks cwd must be Node objects in Waf 1.9
2016-07-14 14:00:07 -03:00
Andrew Tridgell
f579c3e6eb
mk: added a global make.inc
...
saves added global libraries to every subdirectory
2016-07-14 13:39:48 +10:00
Andrew Tridgell
7d48b25207
AP_Module: use ifdef in function, not caller
...
suggestion by Lucas
2016-07-14 13:39:48 +10:00
Andrew Tridgell
eee9fc88a1
AP_InertialSensor: avoid ifdef for AP_MODULE_SUPPORTED
2016-07-14 13:39:47 +10:00
Andrew Tridgell
e82468a529
AP_AHRS: avoid ifdef for AP_MODULE_SUPPORTED
2016-07-14 13:39:47 +10:00
Andrew Tridgell
5ce472ab8a
AP_Module: changed hook prefix to ap_hook_
2016-07-14 13:39:47 +10:00
Andrew Tridgell
e8d8ca5eef
AP_Module: updated example module
2016-07-14 13:39:47 +10: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
f29323871f
AP_Module: added default module directory
2016-07-14 13:39:47 +10:00
Andrew Tridgell
d25db426a3
waf: added AP_Module to the build
2016-07-14 13:39:47 +10:00
Andrew Tridgell
33ce1213a2
AP_InertialSensor: call gyro_sample and accel_sample AP_Module hooks
2016-07-14 13:39:47 +10:00
Andrew Tridgell
6b6a02e67e
AP_Module: also allow export of raw gyro and accel samples
...
allows for oversampling in image correction
2016-07-14 13:39:46 +10:00
Andrew Tridgell
36181b78de
AP_AHRS: fixed build for px4
2016-07-14 13:39:46 +10:00
Andrew Tridgell
7a2d67bde9
AP_Module: added AP_MODULE_SUPPORTED define
2016-07-14 13:39:46 +10:00
Andrew Tridgell
107f76828d
HAL_Linux: added AP_Module support
2016-07-14 13:39:46 +10:00
Andrew Tridgell
15a01eefb1
AP_AHRS: added AHRS_update hook
2016-07-14 13:39:46 +10:00
Andrew Tridgell
bd00beaf99
AP_Module: added external module hook library
...
this allows for external modules to be called at defined hook
locations in ArduPilot. The initial example is a module that consumes
the AHRS state, but this can be generalised to a wide variety of hooks
2016-07-14 13:39:46 +10:00
Andrew Tridgell
59e4e8def6
autotest: make bat files work with multiple versions of flightgear
2016-07-14 12:50:27 +10:00
Grant Morphett
d1799884b2
Rover: Implemented MAV_CMD_NAV_LOITER_UNLIM
2016-07-14 11:34:22 +10:00
Andrew Tridgell
32d5e6162a
mavlink: submodule update
2016-07-14 08:41:09 +10:00
Lucas De Marchi
b375b33189
waf: allow to disable tests
...
This allows to completely disable the tests. Even the gtest submodule is
not checked out allowing integration on build servers without needing to
download one more submodule.
This is different from the --notests flag. The latter only disables
executing the tests, but always use the submodule.
2016-07-13 15:38:50 -03:00
Lucas De Marchi
8967220652
waf: pass uselib_store in check_package()
...
This guarantees waf will always add the flags with our known prefix.
2016-07-13 15:24:42 -03:00
Andrew Tridgell
1b12371e25
waf: use define_name in libdl check
2016-07-13 15:24:42 -03:00
Andrew Tridgell
a5adae5fb4
waf: make linux check for libdl
...
needed for libiio
2016-07-13 15:24:42 -03:00
Andrew Tridgell
3322d7c321
waf: don't build bebop static
...
need dynamic for libiio
2016-07-13 15:24:42 -03:00
Andrew Tridgell
2980d47e23
waf: added check_package() function for pkg-config checks
...
this converts existing pkg-config checks to use check_package, which
sets up all the needed variables after a check.
This also disables libdl and libiio for static builds, where they make
no sense
2016-07-13 15:24:41 -03:00
Andrew Tridgell
55e91f0325
waf: added --static option
...
this forces a static build
2016-07-13 15:24:41 -03:00
Lucas De Marchi
e64fc08e09
PX4Firmware: submodule update
2016-07-13 14:19:05 +10:00