Commit Graph

1249 Commits

Author SHA1 Message Date
px4dev e5e2d7216c Make it non-fatal to perform SPI transfers from interrupt context. 2012-08-25 13:15:23 -07:00
Lorenz Meier 380d136483 Fixed a few readout bugs in sensors app 2012-08-25 21:44:01 +02:00
Lorenz Meier b0493e9aec Merge branch 'px4dev_new_driver' of github.com:PX4/Firmware into px4dev_new_driver 2012-08-25 21:31:09 +02:00
px4dev 23d8b69e3d Sensor drivers should run all the time, not just when their device is open.
Disable this for the mpu6000 driver though, as it's currently busted in that regard.
2012-08-25 11:52:44 -07:00
Lorenz Meier 731621a309 Merge branch 'px4dev_new_driver' of github.com:PX4/Firmware into px4dev_new_driver 2012-08-25 20:42:05 +02:00
px4dev 0dc0a0539d Increase the retry count while probing for I2C sensors. This will also unwedge stuck sensors. 2012-08-25 10:53:14 -07:00
Lorenz Meier 656596896a Merge branch 'px4dev_new_driver' of github.com:PX4/Firmware into px4dev_new_driver 2012-08-25 19:30:43 +02:00
Lorenz Meier 8eeba595ee Improved param load / store text feedback, ported sensors app to new driver model, ready for merge and test 2012-08-25 19:16:12 +02:00
patacongo d6b8fcdcf0 Prep for 6.21 release
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5052 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-25 16:40:31 +00:00
px4dev 4456ca8827 Sensor IOCTL reorganization. Common sensor operations are now shared across sensor drivers.
Revamp hmc5883, ms5611 and mpu6000 driver startup and test code.
2012-08-25 00:12:11 -07:00
patacongo 20c7cf9db9 Update STM32 USB OTG FS host driver -- the driver is now marginally functional
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5051 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-24 22:16:09 +00:00
px4dev f901a35bd4 Remove erroneous sensor read timing checks. 2012-08-24 08:55:30 -07:00
px4dev d55dd67d77 Remove spurious I2C clock frequency resets. 2012-08-24 08:18:18 -07:00
Lorenz Meier d12c09cc86 improvements / debugging on I2C drivers 2012-08-24 14:58:14 +02:00
Lorenz Meier 45e178eaa3 Made error message more verbose 2012-08-24 11:50:01 +02:00
Lorenz Meier a1b99a3f03 Kicked out mix_and_link, deleted old MPU driver, disabled (still needed for reference) old HMC and MS5611 drivers. Removed driver init from up_nsh.c. Reworked fixedwing_control to be closer to up-to-date api, still more clean up needed. Fixed a bug that limited the motor thrust for multirotor control 2012-08-24 11:40:42 +02:00
Lorenz Meier a69c55f671 Merge branch 'px4dev_new_param' of github.com:PX4/Firmware into px4dev_new_driver 2012-08-24 10:12:47 +02:00
px4dev 0472eeae05 Add EEPROM read/write performance counters. 2012-08-23 23:15:55 -07:00
px4dev 5ef6a41012 Add a modified version of the stock AT24xx EEPROM driver tweaked for our uses.
Use I2C_TRANSFER to avoid racing with other devices on the bus.
Clock at 400kHz.
2012-08-23 23:04:26 -07:00
px4dev bcee27c6cc Turn off the stock AT24xx EEPROM driver; we are going to use our own. 2012-08-23 23:03:13 -07:00
px4dev f28a757f92 We need to init the gyro subdevice, or there is no device node. Oops. 2012-08-23 20:32:13 -07:00
px4dev 5c6698b720 Merge branches 'px4dev_new_param' and 'px4dev_new_param' of https://github.com/PX4/Firmware into px4dev_new_param 2012-08-23 20:15:35 -07:00
Lorenz Meier 295e9da1ba Added required scalings, added gyro to MPU6000 test, changed sensors app to read from new drivers 2012-08-24 02:16:26 +02:00
patacongo 2ac3898301 Lots of defconfig changes for compatibility with the configuration tool
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5050 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-23 22:46:36 +00:00
Lorenz Meier 0e44d3810e Removed old file 2012-08-24 00:01:35 +02:00
Lorenz Meier 62e07358b4 Ported almost everything to new param interface, ready for serious testing 2012-08-24 00:01:23 +02:00
patacongo 1dff49d24f STM32 OTG FS host driver: Fix some bad NAK handling
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5049 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-23 21:13:24 +00:00
patacongo 73220bb854 Fixes several STM32 USB OTG FS host MSC write transfers
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5048 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-23 19:50:04 +00:00
Lorenz Meier b07de1379d moved commander to new param interface 2012-08-23 20:45:28 +02:00
Lorenz Meier 112cd4a95b Updated to MAVLink v1.0.9, deleted v0.9 messages (anyway unsupported) 2012-08-23 16:57:42 +02:00
Lorenz Meier 88f75ebc00 Ported attitude controller to new param interface 2012-08-23 13:31:40 +02:00
Lorenz Meier a7266d539c Bolted new param interface into the sensors app, continuing porting across codebase 2012-08-23 09:44:26 +02:00
Lorenz Meier b378f7ecd9 Merge branch 'px4dev_new_param' of github.com:PX4/Firmware into px4dev_new_param 2012-08-23 07:44:38 +02:00
Lorenz Meier 72d9db9875 Merge branch 'master' of github.com:PX4/Firmware into px4dev_new_param 2012-08-23 07:44:24 +02:00
px4dev 92594ba76a Hack bus reset support into the old-style hmc5883 driver. 2012-08-22 22:26:09 -07:00
px4dev 0f74d08960 I2C configuration options to support up_i2creset 2012-08-22 22:25:45 -07:00
px4dev a0b9c056d7 Add a bus reset on I2C error. Also add a mechanism for automated retries of operations. 2012-08-22 22:25:10 -07:00
px4dev a3b78163c3 Add locking to the I2C bus reset API to prevent pre-emption and conflict when resetting at the same time that another transaction attempts to use the bus. 2012-08-22 22:24:22 -07:00
px4dev 6669c7faa9 Add an interface to the STM32 I2C driver that provides a way to reset the driver and the bus.
This can be used to unwedge the bus when transactions are failing due to a device being out of sync.
2012-08-22 22:13:17 -07:00
px4dev be85f895a0 Use a much shorter timeout for normal communication, and stretch it only when we are waiting for erase. 2012-08-22 17:06:58 -07:00
px4dev e0a9024b64 Add some simple interrupt latency tracking. 2012-08-22 16:56:52 -07:00
patacongo f1d8a9efab STM32 USB OTG FS host driver -- updates for NAK and data toggle fixes
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5047 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-22 21:04:17 +00:00
Lorenz Meier 39eb2a3ba0 Merge branch 'px4dev_new_param' of github.com:PX4/Firmware into px4dev_new_param 2012-08-22 20:58:12 +02:00
patacongo b2fb8996ac STM32 USB OTG FS host driver update (almost done)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5046 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-22 18:13:04 +00:00
Lorenz Meier 06e18f14e6 Ensure that sensor drivers are loaded 2012-08-22 16:34:53 +02:00
Lorenz Meier 5f259e41d5 Sensor readout, testing and driver adjustments 2012-08-22 16:20:05 +02:00
Lorenz Meier fa9f145b08 Fixed a bunch of issues in the arming state machine for multirotors, arming / disarming works fine now. Porting of various processes needed 2012-08-22 14:35:22 +02:00
patacongo 9ab1bb8a53 PM update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5045 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-08-22 12:27:05 +00:00
px4dev 44ff4d4ee2 Fix parameter change advertisement to conform to API change. 2012-08-22 01:09:06 -07:00
px4dev 1eccfb7ccb Add link to the BSON spec. 2012-08-22 01:08:43 -07:00