Commit Graph

67 Commits

Author SHA1 Message Date
Lorenz Meier 64c5096c9f Merged with fixed-wing stabilization work, multirotor control tested 2012-10-22 14:42:50 +02:00
Doug Weibel 1e0a34a102 Add functions for computation of the distance and bearing to the nearest point of a line segment or arc segment. 2012-10-21 16:39:53 -06:00
px4dev cf6e763c58 Beat up on the mavlink app startup a bit. 2012-10-14 22:40:18 -07:00
Doug Weibel 0a0215338a Merge branch 'master' of https://github.com/PX4/Firmware 2012-10-13 16:38:18 -06:00
px4dev 1e59a592a6 Split the parameter load/save commands out of the 'eeprom' command, since that's not really the obvious place for them. Add parameter printing functionality (though, it's a mess due to %f being busted)
Update the script examples to use the new command.
2012-10-09 22:45:36 -07:00
px4dev a2ab5e8691 Don't treat end-of-document-structure as an error. 2012-10-08 22:37:18 -07:00
Doug Weibel 2bb1d17c7e Changes to the PID controller. Adds "limit" to the parameter set. Implements an output limit where the output magnitude is limited by the parameter value "limit". Also changes the integrator saturation such that the integrator is not updated (added to) if either updating it will cause the integrator values magnitude to exceed "intmax" or if the output magnitude would exceed "limit" with an updated integrator value.
Arbitrary large limit values were hard coded into multirotor_attitude_control.c.  These should be changed to parametric values or something sensible.

This commit will temporarily break fixedwing_control.c.  A following commit will repair it along with significant changes to the inner loop control.

This commit has been tested to compile with fixedwing_control.c temporarily removed.  No other testing has been completed.
2012-10-07 14:46:26 -06:00
px4dev dfae108e6a Go back to the FIFO scheduler for now, as we don't have time to shake out the RR scheduler changeover just yet.
Make the "default" scheduler a centralized definition so that changes are easier in future.
2012-10-03 23:13:20 -07:00
px4dev 93c200d281 Add new 'task_spawn' interface for starting new tasks in the PX4 world 2012-10-01 00:02:38 -07:00
Lorenz Meier 7949ac1ad8 Fixed heading calculation, fixed heading controller 2012-09-29 18:00:01 +02:00
Julian Oes 0eae48d480 Merge remote-tracking branch 'upstream/ardrone' 2012-09-25 18:19:12 +02:00
Julian Oes 6b0ed71ae0 Simplified magnetometer calibration routine 2012-09-25 16:36:33 +02:00
Lorenz Meier de530d6ba1 General robustness improvements in PID struct, numerically close to bullet-proof, error reporting needs improvements still. 2012-09-23 01:20:41 +02:00
Lorenz Meier 8b951ec417 WIP on HIL 2012-09-22 20:55:44 +02:00
Lorenz Meier a9b21886f3 Halfway-working fixed wing waypoint control, needs more effort 2012-09-22 18:46:04 +02:00
px4dev b1767480d2 Some fixes for getopt_long 2012-09-10 00:16:30 -07:00
px4dev 6caa3038ba Ok, all this hand-rolled option parsing is lame. Let's have a dose of getopt_long. 2012-09-08 21:52:29 -07:00
Lorenz Meier 5c7f7f5a4c Fixed a & vs && bug 2012-09-07 14:54:31 +02:00
px4dev 97bdb9482a Turn off annoying debug output. 2012-09-04 23:36:57 -07:00
px4dev 62682d805e Avoid a couple of unnecessary promotions to double. 2012-09-03 23:21:41 -07:00
px4dev 0d89da96a3 Adjust the mixer tables for observed yaw sign behavior. 2012-09-03 02:45:33 -07:00
px4dev 732e23a883 Add some documentation for the warn/err functions. 2012-08-29 21:38:52 -07:00
Lorenz Meier c816cca816 fixed a param save bug 2012-08-29 22:56:29 +02:00
px4dev 255b0f68af Let's not get too smart; we can't const these. 2012-08-28 23:37:23 -07:00
px4dev 1a781c6c4a Make the distinction between "parameter import" which merges parameters, and "parameter load" which blows away any current changes. 2012-08-28 22:15:25 -07:00
px4dev f0286d1a10 Distinguish between the end of the top-level BSON object and an error so that parameter loading can complete. 2012-08-28 21:52:26 -07:00
Lorenz Meier 2d2548e714 Final parameter interface cleanup - removed last bit of old cruft, fixed a bug on parameter update notification, cleaned up API slightly in naming 2012-08-27 22:57:20 +02:00
Lorenz Meier 2a6a151342 Added common conversion functions 2012-08-27 22:55:19 +02:00
px4dev 544d427155 fix warn() not printing error strings. 2012-08-25 18:25:39 -07:00
px4dev 30e0354fd8 Add some C++ friendliness. Not enough, but some. 2012-08-25 16:12:48 -07:00
Lorenz Meier 62e07358b4 Ported almost everything to new param interface, ready for serious testing 2012-08-24 00:01:23 +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
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
px4dev f20c61ccdf Various BSON codec fixes. Simple load/save test is working now. 2012-08-20 04:06:44 -07: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
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 f8efb60b59 Major cleanup of the param code; more layering, more comments. Parameter import. 2012-08-19 22:15:29 -07:00
Lorenz Meier e28af802ce Merge branch 'master' into px4dev_new_param 2012-08-19 17:08:48 +02:00
Lorenz Meier dae0b922f1 Added deamon example, reworked / merged multirotor attitude control. Ready for AR.Drone interface changes and integration tests 2012-08-19 15:52:59 +02:00
Lorenz Meier 85bc4f683a Cleaned up position control (WIP), moved PID structs (should become classes) to systemlib, added deamon app example 2012-08-19 11:29:07 +02:00
px4dev d903311dce Add support for setting and exporting parameters. 2012-08-19 01:31:27 -07:00
px4dev a9dc84231e Import of the Mongo C-BSON library with light modifications for PX4.
From https://github.com/mongodb/mongo-c-driver.git at 8ae2c57e95a3939850a77fb9329c129b2bcfcd1a
2012-08-19 01:31:27 -07:00