Commit Graph

991 Commits

Author SHA1 Message Date
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
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
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
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
Lorenz Meier 1bea49869b task file list gdb macro 2012-08-22 10:00:46 +02:00
Lorenz Meier d2e757aa3c Merged parameter changes 2012-08-22 09:19:43 +02:00
Lorenz Meier 72979032e9 Merge branch 'master' into px4dev_new_param 2012-08-22 08:56:33 +02:00
px4dev 88f0080a0f Fix an architectural issue with the ORB that prevented publication from interrupt context.
ORB topic advertisements are now global handles that can be used in any context.  It is still possible to open a topic node as a publisher, but it's not the default.  As a consequence, the type of the handle returned from orb_advertise has changed; all other API remains the same.
2012-08-21 23:44:22 -07:00
px4dev 8c22e2a092 Whitespace 2012-08-21 22:30:04 -07:00
px4dev 5f77561ed4 Fix output scaling for the hmc5883 driver. Add data checking, and fix an issue where the ORB topic could not be published due to being advertised in the wrong context. 2012-08-21 22:05:42 -07:00
px4dev 63831fa908 Fix an issue where the baro ORB topic was advertised from the wrong context and thus could not be published to. 2012-08-21 22:04:38 -07:00
px4dev a0ae2cb175 Add a set of ORB topics for advertising actuator outputs.
This is part of \#7
2012-08-21 20:14:43 -07:00
Lorenz Meier 3a9f34b233 Merge branch 'master' of github.com:PX4/Firmware into px4dev_new_param 2012-08-21 20:18:31 +02:00
Lorenz Meier f3c1a7475d Improved tuning for current attitude estimation hack, needs to be removed ASAP 2012-08-21 17:42:24 +02:00
px4dev 228fbb975a New-style driver for the HMC5883 on I2C. 2012-08-21 01:09:03 -07:00
Lorenz Meier c8645a7e53 Added more params, old read-in code not yet replaced 2012-08-21 09:02:09 +02:00
Lorenz Meier 89f36087da Fixed and improved error messages for MAVLink param read / write 2012-08-21 08:33:35 +02:00
px4dev 14e60e9b4d Back out a change that snuck in from another branch. 2012-08-20 21:46:52 -07:00
px4dev 503cb0ea03 Add an ORB topic that can be subscribed for notification of changes in the parameter set. 2012-08-20 21:17:50 -07:00
px4dev a043702af5 Merge branch 'master' into px4dev_new_param 2012-08-20 18:03:12 -07:00
px4dev 3246568c82 sscanf field widths seem to be broken, don't use them. 2012-08-20 17:59:21 -07:00
Lorenz Meier 7127c106cb Missing removed file 2012-08-20 23:53:09 +02:00
Lorenz Meier d1261e227c Porting to new param interface, updated mixers 2012-08-20 23:52:13 +02:00
Lorenz Meier df07ff8056 Merge branch 'master' of github.com:PX4/Firmware into px4dev_new_param 2012-08-20 19:38:40 +02:00
px4dev 4ddf93bd06 Tweak the MAVlink parameter load/save path to deal with NXFFS. 2012-08-20 09:55:53 -07:00
Lorenz Meier 821306bc4d Allow to disable USB interface (but leave it enabled as default), give uORB more stack space 2012-08-20 17:48:31 +02:00
Lorenz Meier d17bbc7a0b Minor fixes to EEPROM params 2012-08-20 17:26:59 +02:00
pixhawk 801697c540 fixed sensors error printing 2012-08-20 16:08:27 +02:00
Lorenz Meier e3fffa23e0 Merge branch 'master' into px4dev_new_param 2012-08-20 13:16:09 +02:00
Lorenz Meier 78db6c990b Testing larger stack for sensors app 2012-08-20 13:11:19 +02:00
px4dev f20c61ccdf Various BSON codec fixes. Simple load/save test is working now. 2012-08-20 04:06:44 -07:00
Lorenz Meier aaf2a23f18 Reduced optimistic send rates, better mag scaling 2012-08-20 12:38:45 +02:00
Lorenz Meier 0d28187960 Fixed attitude mag scaling 2012-08-20 11:36:44 +02:00
Lorenz Meier 767f253976 Fixed attitude rate limiting 2012-08-20 11:15:44 +02:00
px4dev 56bba7816f Merge branch 'px4dev_new_param' of https://github.com/PX4/Firmware into px4dev_new_param 2012-08-20 01:53:37 -07:00
px4dev cc7a9c9b66 Update for the new BSON coders. Not working right yet. 2012-08-20 01:52:39 -07:00
px4dev 26c2c2d2cf Goodbye to the Mongo BSON codec; too big. Hello to a really small SAX-style decoder and matching encoder. 2012-08-20 01:52:21 -07:00
px4dev a9dd3564ed Don't delete the parameter file on failed load. 2012-08-20 01:51:18 -07:00
Lorenz Meier 41172f24d5 Moved parameter command handling to mavlink app 2012-08-20 09:32:42 +02:00
Lorenz Meier 2c8fafd12a Reworked MAVLink parameter interface to support new parameter storage, tested. 2012-08-20 09:07:33 +02:00
Lorenz Meier 4a7f92fad0 Merge branch 'px4dev_new_param' of github.com:PX4/Firmware into px4dev_new_param 2012-08-20 07:51:07 +02:00
Lorenz Meier fd04ab0d44 Fixed / extended comments 2012-08-20 07:50:56 +02:00
px4dev 532b61c5a2 Tweak the test to work with the changed parameter export path 2012-08-19 22:16:10 -07:00
px4dev b0d13c9556 wrapper commands for saving and loading parameters 2012-08-19 22:15:51 -07:00
px4dev f8efb60b59 Major cleanup of the param code; more layering, more comments. Parameter import. 2012-08-19 22:15:29 -07:00