26 Commits

Author SHA1 Message Date
Daniel Agar
53595bac0e board support add px4_i2c_bus_external/px4_spi_bus_external 2017-11-20 23:44:31 +01:00
David Sidrane
7df27aa344 lis3mdl:spi_dev_e is now uint32_t in NuttX
Using new type of uint32_t for spi device
2017-09-29 10:13:51 -04:00
Daniel Agar
79869c848f drivers fix missing field initializers 2017-09-16 21:29:52 +01:00
Beat Küng
ce7d8d2270 sensor_mag.msg: add is_external flag & set it in the mag drivers
With this we don't have to use the ioctl MAGIOCGEXTERNAL, which does not
work on POSIX (eg. RPi).
2017-06-14 19:53:07 +02:00
Mohammed Kabir
a11ef6be10 lis3mdl : fill device ID, scale and range into uORB topic properly 2017-05-27 00:31:05 +02:00
Daniel Agar
827725fbe0 cmake remove -Weffc++ (#7044)
- closes #7040
2017-04-13 13:30:22 -04:00
Beat Küng
546bd2b4d0 drivers: remove the overflow perf counter
This was used together with the read() interface, but we don't use that
so the counters are wrong.
2017-03-20 09:11:34 +01:00
Mathieu Bresciani
d67b6efda3 PixHawk Pro: Update mag IDs to have external higher priority 2017-03-07 23:43:28 +08:00
Michael Schaeuble
497a210742 lis3mdl: Fix check_calibration() output
The previous implementation returned OK when the sensor was not calibrated and vice
versa. This fixes a preflight fail due to selftest failed.
2017-02-27 22:52:28 +01:00
klopezal
b5858e729c lis3mdl : correct offset and scale checks 2017-02-12 13:52:41 +01:00
Kevin
1ce0bafebd lis3mdl : fix logic in check functions and code style 2017-02-12 13:52:41 +01:00
Kevin
62b4d2de0d Fixing code style 2017-02-12 13:52:41 +01:00
klopezal
f09b60ad9e lis3mdl : several fixes and enhancements 2017-02-12 13:52:41 +01:00
Lorenz Meier
19d4c65a70 LIS: Add missing bus identifier 2017-01-29 16:24:47 +01:00
David Sidrane
43c1237d00 On lis3mdl use the bus setting to return internal/external
Removed asssumtion that all HW other then PX4v1 has lis3mdl on
  an external i2c bus. Use the actual value of the bus the device
  was found and instanced on to return the result of
  MAGIOCGEXTERNAL ioctl
2017-01-21 11:45:36 +01:00
Lorenz Meier
dd6d1136b3 LIS3MLD: Remove unnecessary boot output left over from driver bringup 2016-12-12 16:11:21 +01:00
Beat Küng
241fd629ce ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR 2016-09-30 13:50:51 +02:00
Julian Oes
8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Lorenz Meier
7398164fcc Updated PX4 use / API of low level GPIO and other hardware-centric system facilities 2016-05-28 14:56:17 +02:00
Daniel Agar
848e87ff76 lis3mdl use STACK_MAIN 2016-05-13 13:01:41 +02:00
David Sidrane
161f92250f Update CMakeLists.txt (#4377)
Removes warning as Cmake now using STACK_MAIN
2016-04-27 08:29:06 +02:00
Robert Dickenson
2dac97fe68 Add required rotation option to driver startup command and fix a couple of details in warnings/comments 2016-04-22 10:30:19 +02:00
Robert Dickenson
91241626a9 change type mag_scale to type struct mag_calibration_s for compatibility with master (only noted this thanks to travis build test) 2016-04-22 10:30:19 +02:00
Robert Dickenson
cb3c625ea4 Apply AStyle to fixup formating 2016-04-22 10:30:19 +02:00
Robert Dickenson
630146686e Comment out line which checks for attempt to set sampling rate beyond that supported by device. 2016-04-22 10:30:19 +02:00
Robert Dickenson
45a601b9c1 New driver for the LIS3MDL magnetometer. 2016-04-22 10:30:19 +02:00