Commit Graph

526 Commits

Author SHA1 Message Date
Andrew Tridgell 895dc3a2bb lsm303d: dump I2C control registers in regdump 2013-12-10 11:30:53 +01:00
Andrew Tridgell 0349937a82 lsm303d: added detailed logging of accels on extremes
this will log accel values and registers to /fs/microsd/lsm303d.log if
any extreme values are seen
2013-12-10 11:30:01 +01:00
Lorenz Meier bc8cfc8d9d Fix indendation in airspeed driver (no functional change) 2013-12-10 11:21:45 +01:00
Andrew Tridgell 70e56a3d54 px4fmu2: enable SPI sensor DRDY pins 2013-12-10 11:03:43 +01:00
Andrew Tridgell 53f2dc8296 drv_hrt: added hrt_call_init() and hrt_call_delay() APIs
hrt_call_init() can be used to initialise (zero) a hrt_call structure
to ensure safe usage. The hrt_call_every() interface calls this
automatically.

hrt_call_delay() can be used to delay a current callout by the given
number of microseconds
2013-12-10 11:03:31 +01:00
Andrew Tridgell 86ec1c37fa l3gd20: added retries to disable_i2c() 2013-12-10 11:03:12 +01:00
Andrew Tridgell 476070510e lsm303d/l3gd20: change filters to 50Hz analog on-chip filters
after discussion with Leonard these analog on-chip filters should be
at 50Hz
2013-12-10 11:02:49 +01:00
Andrew Tridgell b0bb5a3450 ms5611: change bus speed to 5MHz
this gives 5MHz SPI bus speed (by asking for 6MHz due to timer
granularity).

Tests with a logic analyser show that the ms5611 is actually more
reliable at 5MHz than lower speeds
2013-12-10 11:01:53 +01:00
Andrew Tridgell a52e70ca93 ms5611: removed unused variable 2013-12-10 11:01:33 +01:00
Andrew Tridgell 3f0f34a4c7 ms5611: give cleaner SPI traces
this makes logic traces cleaner by zeroing extra bytes written
2013-12-10 11:01:20 +01:00
Lorenz Meier 012adc9e33 Minor fixes to bus reset 2013-12-04 09:25:07 +01:00
Lorenz Meier acc3cc087f Added sensor rail reset IOCTL and command (fmu sensor_reset 10 resets for 10 ms) 2013-12-04 08:17:35 +01:00
Lorenz Meier 881cf61553 Added IOCTL and command for sensor rail reset (does not yet re-initialize sensor drivers) 2013-12-04 07:57:23 +01:00
Andrew Tridgell edc5b68499 l3gd20: use highest possible on-chip filter bandwidth
this allows the software filter to do its job properly
2013-12-04 07:08:23 +01:00
Andrew Tridgell b2119839bd lsm303d: init filter to 773 Hz 2013-12-04 07:08:05 +01:00
Andrew Tridgell bdb462379a FMUv2: don't config ADC pins that are now used for MPU6k CS and other uses 2013-11-30 20:21:51 +11:00
Andrew Tridgell 19853f87a2 FMUv2: change CS pins to 2MHz
this gives cleaner traces
2013-11-30 20:21:44 +11:00
Andrew Tridgell 6ba54e7035 lsm303d: cleanup logic traces by pre-zeroing all transfers 2013-11-30 20:21:28 +11:00
Andrew Tridgell 9214154831 lsm303d: added I2C disable based on method from ST engineering support 2013-11-30 20:21:08 +11:00
Andrew Tridgell cb76f07d31 l3gd20: added I2C disable based on method from ST engineering support 2013-11-30 20:20:23 +11:00
Andrew Tridgell 720f6ab313 FMUv2: set MPU6000 CS as initially de-selected 2013-11-30 20:20:03 +11:00
Andrew Tridgell 3a597d1a1f FMUv2: added define for MPU DRDY pin 2013-11-30 20:19:58 +11:00
Andrew Tridgell 3decf408c2 FMUv2: added support for MPU6000 on v2.4 board 2013-11-30 20:19:52 +11:00
Andrew Tridgell b666581983 lsm303d: fixed TEMP_H register define 2013-11-30 20:19:26 +11:00
Andrew Tridgell af47a3d795 mpu6000: change bus speed based on registers being accessed
this ensures we follow the datasheet requirement of 1MHz for general
registers and up to 20MHz for sensor and int status registers
2013-11-30 20:17:55 +11:00
Andrew Tridgell 244c3602f2 SPI: added set_frequency() API
this allows the bus speed to be changed on the fly by device
drivers. This is needed for the MPU6000
2013-11-30 20:17:09 +11:00
Andrew Tridgell 7d415b0c42 lsm303d: print more registers in "lsm303d regdump" 2013-11-30 20:16:51 +11:00
Andrew Tridgell 72c53b6537 lsm303d: define some more register addresses 2013-11-30 20:16:45 +11:00
Andrew Tridgell a46042754f lsm303d: added 'lsm303d regdump' command
useful for diagnosing issues
2013-11-30 20:16:32 +11:00
Anton Babushkin 39634d1001 px4io driver: bug fixed 2013-11-16 15:54:24 +01:00
Thomas Gubler ae9fae5aae fix MEAS airspeed and airspeed calibration 2013-11-10 19:25:38 +01:00
Lorenz Meier c63995e91c Hotfix: Be more aggressive about SPI2 init on v1 boards 2013-11-08 14:22:27 +01:00
Julian Oes 25bf1abecf pwm_output: Allow PWM values from 900us to 2100us but use a default of 1000us to 2000us 2013-10-31 10:29:06 +01:00
Lorenz Meier 9820ed9de3 Actually allow full range in FMU driver 2013-10-31 08:23:32 +01:00
Lorenz Meier 0eabacd251 Merge branch 'pwm_ioctls' of github.com:PX4/Firmware into pwm_ioctls 2013-10-30 22:35:09 +01:00
Lorenz Meier 727342a516 Teached the FMU driver that stopping is also an option 2013-10-30 22:34:51 +01:00
Lorenz Meier dc80d6745e Merge branch 'master' of github.com:PX4/Firmware into pwm_ioctls 2013-10-30 09:15:55 +01:00
Lorenz Meier 0fa03e65ab Cleanup of Doxygen tags 2013-10-28 15:21:50 +01:00
Andrew Tridgell 52ee477137 lsm303d: try to reset the lsm303d if it goes bad in flight
this is based on earlier work by Julian Oes
2013-10-28 13:10:52 +01:00
Andrew Tridgell 75a0c18a9e px4io: FMU half of px4io error fixes 2013-10-28 13:10:38 +01:00
Lorenz Meier fa1c5dd343 Merge branch 'master' of github.com:PX4/Firmware 2013-10-24 09:26:13 +02:00
Lorenz Meier 2cd9ad97ea Removed unnecessary return statements 2013-10-24 09:26:03 +02:00
Lorenz Meier 17ddc7f471 Merge pull request #483 from PX4/calib_rotation
Calibration of rotated board
2013-10-23 03:32:20 -07:00
James Goppert c4a1a338ff Changed driver to control motor duty cycle. 2013-10-22 05:43:27 -04:00
James Goppert 108d723a49 Removed old timing hack. 2013-10-22 05:10:26 -04:00
James Goppert 174c86321c Roboclaw encoders/ dutycycledrive complete. 2013-10-22 05:04:13 -04:00
James Goppert ce68f93867 Debugging roboclaw comm. 2013-10-21 23:40:36 -04:00
James Goppert 7f0ced968e Working on roboclaw driver. 2013-10-21 21:28:26 -04:00
Anton Babushkin ea89f23c91 calibration: bugs fixed, mavlink messages cleanup 2013-10-21 20:07:47 +02:00
Andrew Tridgell 14e2464fab rgbled: don't try the same bus twice
on PX4v1 the external I2C bus is the same as the LED bus
2013-10-19 11:42:46 +02:00