4429 Commits

Author SHA1 Message Date
Jake Dahl
5a678295b3 added a check to ensure the initialize settings function succeeds. If it does not, the driver fails gracefully. This handles the case that the device is not there. 2018-08-28 18:52:23 -04:00
Kevin Lopez Alvarez
c10ea132b4 PNI RM3100 magnetometer driver (#10302)
* tested on SPI (px4fmu-v4pro)
 * WIP I2C support
2018-08-28 11:44:34 -04:00
Paul Riseborough
ad1c2b31d1 drivers: Always set GPS heading to NAN if not updated 2018-08-28 14:10:36 +02:00
Paul Riseborough
b2c7b44935 drivers: Prevent duplicate reporting of GPS heading 2018-08-28 14:10:36 +02:00
Daniel Agar
d0d1967a65 samv7 adc and tone_alarm move to cdev lib 2018-08-28 09:17:53 +02:00
Daniel Agar
1e7197976d bmp280 move to cdev library 2018-08-28 09:17:53 +02:00
Jake Dahl
507a872546 Made changes as requested by the dev team. 2018-08-27 21:15:04 +02:00
Jake Dahl
07d606ef83 Added TI PGA460 driver functionality to PX4. 2018-08-27 21:15:04 +02:00
Daniel Agar
98a16fdc23 iridiumsbd cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
a40161a3ec tap_esc cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
6e97194ce6 drivers/stm32 cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
6ee47eef14 px4io cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
01595947e5 px4fmu cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
7d57ce65dc px4flow cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
51faca0f66 pwm_out_sim cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
3d6c1690c9 pwm_input cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
0ff1effd98 protocol_splitter cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
fa9b968a16 ulanding cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
f2ef8708b2 tfmini cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
483bacad87 teraranger cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
cfe34ee19c srf02 cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
ebcd3b0b2e sf1xx cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
8cb222494a sf0x cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
9a2def25f3 mb12xx cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
bdba733dd4 ll40ls cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
585d3bbe55 leddar_one cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
b7bf2dd688 hc_sr04 cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
43965c6e10 batt_smbus cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
9b2274ea8d ms5611 cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
1a5ffb3173 mpl3115a2 cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
85a11fc3c3 lps25h cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
Daniel Agar
9cc5453163 lps22hb cleanup unnecessary Device CDev usage 2018-08-27 13:14:15 -04:00
ChristophTobler
6955272316 pmw3901: add specs from datasheet to opt flow msg
without this ekf2 rejects flow
https://wiki.bitcraze.io/_media/projects:crazyflie2:expansionboards:pot0189-pmw3901mb-txqt-ds-r1.00-200317_20170331160807_public.pdf
2018-08-27 17:32:00 +02:00
Lorenz Meier
1d027f938c tfmini: fix format and fix driver start / stop logic so it works when running PX4 as threads on Linux. 2018-08-26 12:05:09 +02:00
Mohammed Kabir
38bae7d401 tfmini : restructure parsing logic to always publish latest measurement 2018-08-26 12:05:09 +02:00
Mohammed Kabir
3afa018954 tfmini : fix scheduling and modernize output
This reduces the scheduling interval to 9ms, such that the driver is always ready to read new data. Running it at exactly 100Hz is not correct since the driver and sensor measurement intervals are not "in sync", causing the driver to miss data. This causes a fill-up of the UART buffer.
2018-08-26 12:05:09 +02:00
David Sidrane
28125aca3d fxos8701cq:Clean up & paramater based low pass fileter
Added paramater based low pass fileter settting from
      IMU_ACCEL_CUTOFF.

      removed gotos.
2018-08-24 23:09:55 +02:00
David Sidrane
3f65efe1b0 fxas21002c:Clean and speed up with SW, HW LPF.
Added paramater based low pass fileter settting from
  IMU_GYRO_CUTOFF.

  Added interfaces for setting the HW low pass filter.
  Set HW LPF to 64 Hz

  Changed poll rate to ODR to 800 Hz.

  Documeted the TIMER_REDUCTION value as 20% and changed it to
  250 Us / 1250 us.

  Added standby control API, to insure chip is configured in
  standby mode.

  removed tabs.

  removed gotos.
2018-08-24 23:09:55 +02:00
David Sidrane
b721b6a54a kinetis:Fixed hard fault when called with nullptr for errata
Logger was hard faulting on start due to a write to
  null pointer dereferece of errata
2018-08-23 14:26:32 -07:00
mcsauder
3a22ee48db Correct trailing whitespaces. 2018-08-18 15:15:41 -04:00
ChristophTobler
f4f112424f pmw3901: add bus option and minor improvements
- remove unused distance sensor rotation
- add possibility to define SPI bus for other boards
- use SENS_FLOW_ROT param to rotate sensor
2018-08-16 17:22:33 +02:00
David Sidrane
84f121ce0a px4fmu-v2:CAN2 GPIO init was over written
hardware detection was overwriting the CAN2 GPIO setting
2018-08-16 00:06:25 +02:00
David Sidrane
18ccf8dbd2 px4fmu-v2: Add detection for Pixhack V3 (#10231)
The Simple HW detection was detecting the
  Pixhack V3 as a mini.

  This commit adds further discrimination, based on
  the fact the Pixhack V3 left VDD_5V_PERIPH_EN
  floating. Where a mini ,V2, V3 HW has it connected
  to the active low enable of the VDD_5V_PERIPH and
  VDD_5V_HIGHPOWER via a 10K pull down.

  The detection enables the 40K pull up and samples
  the pin. This reads back as a logical one on the
  Pixhack V3, and a logical zero on the Mini.

  Since the float is applied some 3.3 Ms post pin setting
  at reset the 10 us should leave the 5 Volt supplies in
  the on state because of the 10K pull down.
  This is assuming typical 40K pullup 10K pull down
  This results in typical 0.66V (.875V max) on the /EN pin
  which should not be detected as a high on the TPS2041.
2018-08-15 09:24:18 -04:00
David Sidrane
011ebd43b8 nxphlite-v3:Enable CAN transceivers 2018-08-14 09:38:15 -04:00
David Sidrane
5044426949 nxphlite-v3:Use non data time RTC configuration.
One a 32.768 is added (RC16) to the board this will keep time.
2018-08-14 09:38:15 -04:00
David Sidrane
d466a09708 kinetis:Add MCU version decoding 2018-08-14 09:38:15 -04:00
David Sidrane
c02fab20fd kinetis:tone_alarm fixed rebase error. 2018-08-14 09:38:15 -04:00
David Sidrane
35960fb012 NXPHlite-V3:Add reset to bootloader detection
On the K66 we use the first word of the Battery backed up RAM
   as the bootloader - app communication location.
2018-08-14 09:38:15 -04:00
David Sidrane
e35be68fd4 NXPhlite work arround to internal i2c routed to external connector.
Since the only device on the bus is the barro, int or ext does
   not apply. This will be fixed on the rev > RC15.
   This defines an alias that can be used to condition the buss logic
   connection logic px4_i2c_bus_external to return external.
2018-08-14 09:38:15 -04:00
David Sidrane
678627d783 mpl3115a2 - removed old comment 2018-08-14 09:38:15 -04:00