Commit Graph

723 Commits

Author SHA1 Message Date
Lorenz Meier f13c7821d9 Fixed mavlink app termination, terminates now cleanly 2012-10-23 10:58:47 +02:00
px4dev 0afeeb5dd8 Move the PX4IO driver into the drivers folder. 2012-10-22 21:39:55 -07:00
Lorenz Meier 3f240a70ba mavlink cleanup, drop rate estimation is finally correct 2012-10-22 23:04:11 +02:00
Lorenz Meier ea36154e39 Accomodating for offboard control setups 2012-10-22 16:08:48 +02:00
Lorenz Meier 64c5096c9f Merged with fixed-wing stabilization work, multirotor control tested 2012-10-22 14:42:50 +02:00
Lorenz Meier 9e8a02b928 Switched to a more convenient audio tune 2012-10-22 13:58:13 +02:00
Lorenz Meier 3a26708203 Resolved wrong TX drop display 2012-10-22 13:28:53 +02:00
Lorenz Meier 3932bad137 Merge branch 'master' of github.com:PX4/Firmware into calibration 2012-10-22 12:14:40 +02:00
Lorenz Meier a3f2114d54 Removed bogus time scalings 2012-10-22 11:25:26 +02:00
Lorenz Meier df8148033a Cleaned up calibration, added text messages ring buffer 2012-10-22 08:14:43 +02:00
px4dev 5b9c469770 Function type fix 2012-10-21 19:12:32 -07:00
px4dev 5925d146bc Move the tone_alarm driver out of the NuttX configs area and add it as an stm32-specific driver in the PX4 apps space.
Add a new tone_alarm command that can be used to start/stop alarm tones from the shell.
2012-10-21 17:51:21 -07: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
Doug Weibel 64ba024db2 Merge branch 'master' of https://github.com/PX4/Firmware 2012-10-21 14:27:36 -06:00
Lorenz Meier 096bf2dc93 Checkpoint: Working, but non-verified full mag calibration 2012-10-21 15:36:29 +02:00
Lorenz Meier 28171fb596 Merge branch 'master' of github.com:PX4/Firmware into calibration 2012-10-21 11:24:51 +02:00
px4dev 73521cbc66 Fix stack allocation (now probably too large) for PX4IO debugging. Disable nonblocking serial comms to avoid losing tx data. 2012-10-20 23:11:04 -07:00
px4dev bfbd17a2fa Make it possible to run fmu and px4io simultaneously with full control over both sets of possible PWM outputs. First started wins. 2012-10-20 16:53:52 -07:00
Lorenz Meier f868c99f06 Merge branch 'mavlink-cleanup' of github.com:PX4/Firmware into calibration 2012-10-21 01:52:00 +02:00
Lorenz Meier 42c61271ea remove bogus dt from att rate 2012-10-20 19:53:49 +02:00
px4dev d2ef2afb0b Major rework of the PX4IO driver; pull it closer up to date 2012-10-19 22:10:12 -07:00
px4dev f12b9d0706 Fix an error message 2012-10-19 22:09:56 -07:00
px4dev 4f20d9a24b Retire old test cases for drivers that have been removed. 2012-10-19 18:59:44 -07:00
Lorenz Meier d3ae83cb22 Merge branch 'daregger_rate_control' of github.com:PX4/Firmware into calibration 2012-10-19 00:39:06 +02:00
Lorenz Meier 5ec5754f26 brought controller back to last tuned state 2012-10-18 17:34:06 +02:00
Lorenz Meier c70c626915 Removed dead code 2012-10-18 13:40:17 +02:00
Lorenz Meier dff0051568 Map inputs to the controller we actually want 2012-10-17 19:02:57 +02:00
Lorenz Meier d1429f266d Calibration progress, needs sphere fitting 2012-10-17 18:27:49 +02:00
Lorenz Meier 6a48b91bea Lowering default rates at 57600 2012-10-17 18:27:21 +02:00
Lorenz Meier 2d631fb005 Various fixes to attitude control, flyable, needs parameter tuning 2012-10-17 18:26:56 +02:00
Lorenz Meier e4645c0a41 Initialized all sensor fields to zero 2012-10-17 15:10:32 +02:00
Lorenz Meier d4e6a9d7a1 Minor code style fixes, removed dead code 2012-10-17 15:10:04 +02:00
Lorenz Meier 8b000b3317 Fixed an abort condition, fixed value initialization, implemented naive three-step calibration 2012-10-17 15:09:28 +02:00
Lorenz Meier 23d294453b Fixed a range of initialization issues in filter, does not any more emit NaN in first iteration 2012-10-17 15:08:33 +02:00
Lorenz Meier 5d3d17d025 Increased priority of MAVLink receiver thread 2012-10-17 10:38:23 +02:00
Lorenz Meier 97726fa679 Calibration WIP, not compiling 2012-10-17 08:02:50 +02:00
daregger 32e586d4b7 Controller and estimator updates 2012-10-16 18:02:28 +02:00
daregger b50bc7798a Wip on inner rate loop 2012-10-16 16:49:45 +02:00
Lorenz Meier 0b26ca84d4 Merged 2012-10-16 11:13:05 +02:00
Lorenz Meier fef4362e79 Merged new EKF version 2012-10-16 11:10:09 +02:00
Lorenz Meier a720bfff5e Merge branch 'tobi' 2012-10-16 11:07:41 +02:00
Lorenz Meier 3ccc6849ac Fixed stupid typo in GPS app 2012-10-16 00:12:48 +02:00
Lorenz Meier 965bd35e2b Ignore measurement parts not projected to the plane 2012-10-16 00:02:53 +02:00
Lorenz Meier 40abed787c fixed wrong status indication of sd log command if startup fails 2012-10-15 23:58:16 +02:00
Lorenz Meier e8c4506a12 Minor documentation style fixes 2012-10-15 08:59:15 +02:00
Lorenz Meier 084cde72f7 Reworked calibration 2012-10-15 08:52:41 +02:00
Lorenz Meier 642f3426a7 Added mag calibration routine, fixed minor typos without runtime effects 2012-10-15 08:52:17 +02:00
Lorenz Meier 6e4398c30d Merge branch 'master' of github.com:PX4/Firmware into mavlink-cleanup 2012-10-15 08:35:44 +02:00
px4dev c1958bdaa9 Teach top how to precisely determine stack usage. 2012-10-14 23:35:32 -07:00
px4dev ae29617543 No joy with getopt_long 2012-10-14 23:09:48 -07:00
px4dev cf6e763c58 Beat up on the mavlink app startup a bit. 2012-10-14 22:40:18 -07:00
px4dev 7c20e66681 Refactor and start tidying up the MAVLink app. 2012-10-14 17:59:15 -07:00
px4dev db0ec8eb02 Merge branch 'master' of https://github.com/PX4/Firmware 2012-10-13 22:09:16 -07:00
Doug Weibel 0a0215338a Merge branch 'master' of https://github.com/PX4/Firmware 2012-10-13 16:38:18 -06:00
Lorenz Meier 4dbf7befe3 Disable rate control, disable offset estimation 2012-10-13 12:25:30 +02:00
px4dev 0ccaa1330b Merge branch 'master' of file:///Users/Shared/NuttX
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5231 42af7a65-404d-4744-a932-0658087f49c3
2012-10-13 00:08:02 -07:00
patacongo e4ccbe7508 You can now configure a login for Telnet NSH session -- from Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5231 42af7a65-404d-4744-a932-0658087f49c3
2012-10-12 16:59:17 +00:00
px4dev d62ec78ab8 Remove obsolete warning. 2012-10-11 00:23:13 -07:00
Lorenz Meier 7ccc4f6096 Merge branch 'master' of https://github.com/tnaegeli/Firmware into tobi 2012-10-10 17:47:44 +02:00
Lorenz Meier 87ce36eef3 Fixed logging, merged 2012-10-10 17:47:28 +02:00
tnaegeli ec018e7b64 Merge branch 'master' of https://github.com/PX4/Firmware
Conflicts:
	apps/commander/state_machine_helper.c
	apps/multirotor_att_control/multirotor_att_control_main.c
	apps/multirotor_att_control/multirotor_rate_control.c
solved
2012-10-10 09:52:37 +02: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
tnaegeli 613e12fcac working offboard 2012-10-09 16:31:04 +02:00
Lorenz Meier bd3f3b1031 Sensor rate and throttle inversion fixes 2012-10-09 16:26:29 +02:00
px4dev a2ab5e8691 Don't treat end-of-document-structure as an error. 2012-10-08 22:37:18 -07:00
Doug Weibel 77e6375920 Change parameter names in FW control to fit within MAVLink parameter name size limit 2012-10-08 14:14:43 -06:00
Lorenz Meier 0edd4063af Merge branch 'master' of github.com:PX4/Firmware into tobi 2012-10-08 18:00:00 +02:00
Lorenz Meier dd50c88f07 Fixed GPS lost issue, fixed accel scale initialization, fixed code style in rate controller 2012-10-08 17:59:43 +02:00
Doug Weibel 4fea0a3fc1 This commit changes the inner loop control structures for fixed wing attitude control. Nested rate and angle loops are used with limits on both the rate setpoint
A simple outer navigation loop is retained for navigation control.  This will be replaced later.  The pitch set point is hard coded to zero.  Pitch stabilization should work.

This commit compiles, but needs further testing.
2012-10-07 14:50:07 -06: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 4c14e4f5f1 Add a 'secret' subcommand to bl_update that manipulates the option bits to change the brown-out detector configuration.
This is an experiment to see if we can improve the boot-time behavior when powered off noisy supplies.
2012-10-06 16:08:07 -07:00
patacongo 4d23437df0 Several bugfixes, mostly from Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5217 42af7a65-404d-4744-a932-0658087f49c3
2012-10-06 14:50:37 +00:00
patacongo eb041b927a Fix some W25 driver errors
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5212 42af7a65-404d-4744-a932-0658087f49c3
2012-10-04 18:42:28 +00:00
patacongo 44a18f5361 Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3
2012-10-04 17:36:07 +00:00
patacongo b0eb4f3cce Change order of includes in apps/Makefile; add clock frequencies to shenzhou, fire, and olimex-stm32 board.h files
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5210 42af7a65-404d-4744-a932-0658087f49c3
2012-10-04 15:07:06 +00:00
Lorenz Meier 1318a0b954 Merge branch 'master' of https://github.com/tnaegeli/Firmware into tobi 2012-10-04 16:38:35 +02:00
Lorenz Meier 2fa0dec369 Back out testing changes that are a bit too much ahead of time for master 2012-10-04 16:38:11 +02:00
tnaegeli f292b03772 Merge branch 'master' of https://github.com/PX4/Firmware 2012-10-04 16:04:49 +02:00
tnaegeli 8dfa66cb97 Merge branch 'master' of https://github.com/PX4/Firmware
Conflicts:
	apps/commander/commander.c
	apps/multirotor_att_control/multirotor_att_control_main.c
	apps/multirotor_att_control/multirotor_rate_control.c
2012-10-04 16:01:42 +02:00
Lorenz Meier 67a2c8a173 Added controller parameters, added vicon position reading 2012-10-04 15:33:39 +02:00
Lorenz Meier 607e902b88 Cleaned up / simplified position control, attacking pos control implementation next 2012-10-04 14:50:34 +02:00
Lorenz Meier 2a06b66845 Fixed inner yaw rate loop 2012-10-04 10:56:55 +02:00
tnaegeli b9de72a8c9 Merge branch 'master' of https://github.com/PX4/Firmware 2012-10-04 09:29:46 +02:00
tnaegeli 733975ed2d fixed Rate controller 2012-10-04 09:28:04 +02: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
patacongo e6656c077c Delete the apps/vsn directory (moved commands to apps/system)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5209 42af7a65-404d-4744-a932-0658087f49c3
2012-10-04 00:11:05 +00:00
patacongo 14b3f41aa6 Delete the apps/vsn directory (moved commands to apps/system)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5208 42af7a65-404d-4744-a932-0658087f49c3
2012-10-03 23:36:54 +00:00
Doug Weibel 067361e2d4 Just a test commit. No content other than a test comment. 2012-10-03 08:47:56 -06:00
tnaegeli 147c5bb664 Merge branch 'master' of https://github.com/PX4/Firmware
Conflicts:
	apps/multirotor_att_control/multirotor_att_control_main.c
2012-10-03 15:15:05 +02:00
tnaegeli f3cb2cf8a3 rate controller update 2012-10-03 15:05:50 +02:00
Lorenz Meier beca2b072e Moved from raw gyro to estimated angular rate from EKF for rate control 2012-10-03 15:02:47 +02:00
Lorenz Meier 053ce0e2f8 Exposed measurement noise covariance and process noise covariance as MAVLink parameters for attitude EKF 2012-10-03 14:45:55 +02:00
Lorenz Meier 921c391db4 Commit finished attitude estim cleanup 2012-10-03 14:00:04 +02:00
Lorenz Meier affa3af4e6 Clean 250 Hz updates in filter, partial updates enabled 2012-10-03 13:39:26 +02:00
Lorenz Meier 992a415ffc Merge branch 'master' of github.com:PX4/Firmware 2012-10-03 10:27:45 +02:00
Lorenz Meier b5d2ec3d92 Merge branch 'master' of github.com:PX4/Firmware 2012-10-02 22:28:22 +02:00
Lorenz Meier 7ef4655b0e Fixed HIL joystick support 2012-10-02 22:28:14 +02:00
Lorenz Meier a95aa1bbba Simplified pos estimator, ready for tests 2012-10-02 13:50:59 +02:00
Lorenz Meier 178462edcd Minor cleanups in debug output and offboard control arming 2012-10-02 13:02:57 +02:00
Lorenz Meier 5895a2e966 Updated update / telemetry rates, updated covariance 2012-10-02 10:41:46 +02:00