Commit Graph

1006 Commits

Author SHA1 Message Date
Thomas Gubler 904efa8fa8 Merge branch 'master' of https://github.com/PX4/Firmware into fw_control 2012-10-31 21:07:01 +01:00
px4dev 8bfceef89c Remove the arbitrary limit on the path to the default parameter file. Add a verb to the param command to set the default parameter file. 2012-10-31 12:59:24 -07:00
Lorenz Meier 3c987d6368 Casting and fix default param path 2012-10-31 18:50:00 +01:00
Lorenz Meier fbdf30b7d4 Merge branch 'master' of github.com:PX4/Firmware 2012-10-31 17:09:11 +01:00
Lorenz Meier 0ddfd7c75c New param interface for microSD and EEPROM 2012-10-31 16:31:21 +01:00
Lorenz Meier 8dcde7f8cd prevent double-precision promotion where its not required 2012-10-31 15:49:01 +01:00
Lorenz Meier 939fc83c4a Fix compile warnings 2012-10-31 15:44:45 +01:00
Lorenz Meier 472010b10b Extended GPS struct with velocity vector 2012-10-31 12:59:14 +01:00
px4dev 34a3b260f3 Move the last of the board-specific code for PX4FMU out of the NuttX tree. Now it's just configuration. 2012-10-31 00:37:15 -07:00
px4dev b685d46dbf Clean out remains of the old EEPROM driver. 2012-10-30 20:51:45 -07:00
Lorenz Meier 137afdbd3c Remove excessive mem usage 2012-10-30 19:11:27 +01:00
Thomas Gubler ee1e98babb Merge branch 'master' of https://github.com/PX4/Firmware into fw_control 2012-10-30 18:30:35 +01:00
Thomas Gubler e716bd02ce Merge branch 'FW_control' of https://github.com/dougweibel/Firmware into fw_control 2012-10-30 18:29:31 +01:00
Lorenz Meier edd2715f84 reverted memory change, sdlog app needs more than 2K 2012-10-30 18:26:36 +01:00
Doug Weibel 18831db444 Work in process - beginning of navigation/position control implementation. Compiles, but has not been tested. 2012-10-30 11:01:56 -06:00
Lorenz Meier 56a0f14b34 Minor last tweaks 2012-10-30 17:57:26 +01:00
Lorenz Meier 12e1cf3710 Fixed error term calculation for yaw position 2012-10-30 17:38:26 +01:00
Lorenz Meier ab63a77edf Reducing stack sizes to free some RAM 2012-10-30 16:44:57 +01:00
Lorenz Meier 96dc901cae Fixed mag calibration 2012-10-30 16:44:16 +01:00
Lorenz Meier b1a83be611 Fixed extremely stupid copy-paste bug in mag scale loading 2012-10-30 11:32:23 +01:00
Lorenz Meier 4db0ec03ce Better yaw position control, but not quite there yet 2012-10-30 11:16:01 +01:00
Lorenz Meier 01932a2dc3 Merge branch 'master' of github.com:PX4/Firmware 2012-10-30 07:50:13 +01:00
Lorenz Meier fedf5470d6 Correctly initializing and updating yaw setpoint, sign still to be checked 2012-10-30 07:20:23 +01:00
px4dev 66da4395b4 Kill the old board info code. 2012-10-29 23:07:15 -07:00
px4dev 0616d58340 Add 'show' and 'test' verbs to the boardinfo command. Teach rcS how to use the new version. 2012-10-29 21:47:51 -07:00
px4dev 7203ba797e bson-based boardinfo working 2012-10-29 21:47:51 -07:00
px4dev 3420e7b828 Fix param handling of 32-bit BSON nodes 2012-10-29 21:47:51 -07:00
px4dev 4c18aced36 BSON coder unit tests, fixes arising from test failures. 2012-10-29 21:47:51 -07:00
px4dev 3d750bc38c Build fixes 2012-10-29 21:47:50 -07:00
px4dev c522b5446d Work in progress on to/from memory BSON coding. 2012-10-29 21:47:50 -07:00
px4dev 270a5d351f Warning fixes. 2012-10-29 21:47:37 -07:00
px4dev 9a85801cb0 Doxyheader fixes 2012-10-29 18:01:31 -07:00
Doug Weibel 09ec869ae9 Merge branch 'master' of https://github.com/PX4/Firmware into FW_control 2012-10-29 18:24:47 -06:00
Thomas Gubler 9ad9d62f34 Corrected some bugs, thanks to Doug for spotting them 2012-10-29 23:09:07 +01:00
Lorenz Meier 574eb96a2e Calibration improvement 2012-10-29 16:41:53 +01:00
Lorenz Meier c3c76ef3d5 Hardened the EEPROM attach routine for param storage 2012-10-29 09:44:59 +01:00
Thomas Gubler db8d369c55 added a very simple altitude controller for testing 2012-10-28 19:44:30 +01:00
Thomas Gubler b692c300d0 fw control: added Dougs horizontal navigation controller 2012-10-28 18:35:08 +01:00
Thomas Gubler 69e938aac3 moved elevator (-1) multipliction, ultimately this has to go into the mixer 2012-10-28 16:56:05 +01:00
Thomas Gubler 8fff4e19d6 roll compensation and default paramter values, pitch value has a sign error 2012-10-28 16:15:51 +01:00
Thomas Gubler 2f4cb6ca84 reverting my workaround in mavlink orb_listener so that the fix of Lorenz is active 2012-10-28 16:14:06 +01:00
Thomas Gubler 8d764170aa Merge remote-tracking branch 'origin/master' into fw_control 2012-10-28 15:27:13 +01:00
Thomas Gubler e5f56a1a8f fw control: moved and renamed parameters, attitude: roll and pitch working 2012-10-28 15:26:49 +01:00
Lorenz Meier 1a70b2f4ed Added missing event type 2012-10-28 15:04:51 +01:00
Thomas Gubler 62581fe55b fw control: attitude, added pid elements 2012-10-28 11:54:02 +01:00
px4dev 98791bc674 Remove reboot() API, replace with a prototype for up_systemreset() which is portable. 2012-10-27 22:42:43 -07:00
px4dev 22b0add293 Turn off C++ constructor debug messages. 2012-10-27 21:51:18 -07:00
px4dev f04c522f4f Get us a bit closer to having c++ static constructors working. 2012-10-27 21:42:27 -07:00
px4dev 9184753f17 Remove an annoying message. 2012-10-27 11:38:14 -07:00
px4dev 0272fc49aa Build fix due to missing include. 2012-10-27 11:37:11 -07:00
px4dev 6cec7f131e Minor board.h changes. 2012-10-27 11:34:20 -07:00
Thomas Gubler 17772afdaa fw control: fixed parameter reloading, disabled old fw control app 2012-10-27 19:43:03 +02:00
Thomas Gubler 56f4849e87 changed headers 2012-10-27 18:56:45 +02:00
Thomas Gubler abcfe29c64 small temporary bugfix/workaround in mavlink uorb listener 2012-10-27 17:16:10 +02:00
px4dev 5135e5308b Hoist the GPIO driver out and integrate it with the px4fmu driver. Move these pieces into the drivers tree. 2012-10-27 01:39:10 -07:00
Thomas Gubler f321e7f419 Merge branch 'master' of https://github.com/PX4/Firmware into fw_control 2012-10-26 21:21:07 +02:00
Lorenz Meier faa4033f7e More compile fixes 2012-10-26 13:01:34 +02:00
Lorenz Meier e5fd37f719 Build fix after cleanup 2012-10-26 12:48:00 +02:00
Lorenz Meier 67e4584407 Deleted old cruft 2012-10-26 12:45:07 +02:00
Lorenz Meier 5f01688490 Fixed automatic log conversion / plotting script 2012-10-25 18:53:03 +02:00
Lorenz Meier c71f2ea204 Proper attitude initialization, finite check on attitude outputs 2012-10-25 16:29:17 +02:00
Lorenz Meier 569938e680 Copying log analysis file directly to the SD card during logging 2012-10-25 15:47:14 +02:00
Lorenz Meier 8e4c45322e Final GPS state, not nice, but working 2012-10-25 13:23:28 +02:00
Lorenz Meier 2b9cf08dc2 GPS tested and working 2012-10-25 13:07:26 +02:00
Lorenz Meier 4d03d020af Merge branch 'master' of github.com:PX4/Firmware into gps 2012-10-24 10:39:27 +02:00
px4dev 1065118ebc Separate config from implementation for the STM32 pwm servo driver. 2012-10-24 00:55:37 -07:00
px4dev 2fc1032069 Major formatting/whitespace cleanup 2012-10-23 23:51:13 -07:00
px4dev 34f99c7dca Hoist the ADC and CAN board-specific pieces. 2012-10-23 23:51:13 -07:00
px4dev db044b64cd Hoist the oard-specific USB pieces. 2012-10-23 23:51:13 -07:00
px4dev 7b4118a5e7 Hoist SPI functions. 2012-10-23 23:51:13 -07:00
px4dev 4c82f7a1af Cleanup after moving the low-level PWM code. 2012-10-23 23:51:13 -07:00
px4dev eaf91f05bd Fix a filename 2012-10-23 23:51:13 -07:00
px4dev 3d79b9a0b0 Tease the PWM driver out and fix some build issues after cleaning up behind the cpuload pieces. 2012-10-23 23:51:13 -07:00
px4dev c3fe915b44 Checkpoint - moving things out of the NuttX configs/*/src directories 2012-10-23 23:51:12 -07:00
Lorenz Meier 18c009d2c1 Better U-Blox struct packing 2012-10-23 13:16:17 +02:00
Lorenz Meier d7d373f465 System state updates 2012-10-23 13:15:36 +02:00
Lorenz Meier a24e50b931 Merge branch 'master' of github.com:PX4/Firmware 2012-10-23 10:59:01 +02:00
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
Thomas Gubler b9d03c7c27 [work in progess] some copy paste for pitch and yaw, but not enabled yet 2012-10-22 19:13:21 +02:00
Thomas Gubler 69185643c0 added parameters 2012-10-22 18:52:25 +02:00
Thomas Gubler 836c55e122 Merge branch 'master' into fw_control 2012-10-22 18:11:47 +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
Thomas Gubler ab447ac713 [work in progess]roll attitude and roll rate loop works 2012-10-21 21:36:29 +02:00
Thomas Gubler 5616f5c4b1 [work in progess] added pos control skeleton 2012-10-21 21:01:22 +02:00
Thomas Gubler 6c8fb8177e Started implementing fw controller according to controller layout of the ASL lecture 2012-10-21 18:45:24 +02: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
Lorenz Meier 9de6a81543 Updated EKF filter, fixed uploader (reverted to master) 2012-10-02 09:23:47 +02:00
Lorenz Meier d3e7b5e0bf Merge branch 'master' of https://github.com/tnaegeli/Firmware into task_spawn 2012-10-01 17:29:36 +02:00
tnaegeli e42655e7c6 EKF 2012-10-01 17:21:59 +02: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 6005077d54 Fixed typo 2012-09-29 22:06:30 +02:00
Lorenz Meier 6c4bddd996 Fixed a bug in HIL input 2012-09-29 22:04:00 +02:00
patacongo 253d3ab523 Prep for 6.22 Release
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5206 42af7a65-404d-4744-a932-0658087f49c3
2012-09-29 19:10:52 +00:00
Lorenz Meier 7949ac1ad8 Fixed heading calculation, fixed heading controller 2012-09-29 18:00:01 +02:00
patacongo de53b28fd3 Prep for NxWidgets 1.3 release
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5205 42af7a65-404d-4744-a932-0658087f49c3
2012-09-29 15:58:41 +00:00
Lorenz Meier 1725069c18 Merge branch 'update_rate' of https://github.com/sjwilks/Firmware into ardrone 2012-09-29 12:46:20 +02:00
patacongo 343817a6fd Turn off LCD reading on Shenzhou board (needs some TLC before it will be usable)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5202 42af7a65-404d-4744-a932-0658087f49c3
2012-09-28 19:24:46 +00:00
Lorenz Meier fb691c9ff1 Fix a bug where under really adverse conditions the system id is not read before the first heartbeat is send out, resulting in an immediately timing out system in the GCS 2012-09-28 16:28:51 +02:00
Simon Wilks 4933d1dbbd Only provide update rate mod support to modes supporting 4 PWM channels 2012-09-28 08:37:24 +02:00
px4dev 78c2f99f85 Merge branch 'master' of https://github.com/PX4/Firmware 2012-09-27 19:50:20 -07:00
Simon Wilks 7a5ac6892e Support custom PWM update rates
Rates of 50 to 400 can be specified using the -u <rate in hz> parameter
with the fmu command in the startup script.
2012-09-27 23:36:56 +02:00
Julian Oes d206327541 Magnetometer calibration fixed 2012-09-27 18:43:04 +02:00
patacongo c3bc22f07c Definitions for ARMv7-M AIRCR register, Fixes for ADS7843 and SSD1289 driver, Missing build logic for examples/watchdog
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5198 42af7a65-404d-4744-a932-0658087f49c3
2012-09-27 15:29:53 +00:00
Julian Oes 2c5c314105 Cleanup of lots of debugging printfs 2012-09-27 17:08:29 +02:00
Julian Oes 7f15309892 Calibration should not freeze anymore, ardrone flying but estimator is not able to use calibrated magnetometer data 2012-09-27 16:50:20 +02:00
Julian Oes a05c4d0504 Merge branch 'ardrone' of https://github.com/PX4/Firmware into ardrone
Conflicts:
	apps/ardrone_interface/ardrone_motor_control.c
2012-09-27 13:44:47 +02:00
px4dev 62a4aa96b6 Merge branch 'master' of file:///Users/Shared/NuttX
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5197 42af7a65-404d-4744-a932-0658087f49c3
2012-09-27 00:18:03 -07:00
Lorenz Meier ec3949bf82 Fix a bug where the rate controller is always active 2012-09-26 22:25:39 +02:00
Lorenz Meier f93464e64f Fixed RC scaling in sensors app 2012-09-26 22:17:13 +02:00
Lorenz Meier d7456e61ff Fixed a max value in the AR.Drone interface 2012-09-26 22:16:57 +02:00
Lorenz Meier cbb1f1c9ed Fixed RC and offboard control state machine 2012-09-26 21:30:33 +02:00
Lorenz Meier 66aa281c07 Merge branch 'master' of github.com:PX4/Firmware into ardrone 2012-09-26 19:45:10 +02:00
Julian Oes ac43a67a0f ardrone max motor output was slightly to high 2012-09-26 14:29:47 +02:00
Julian Oes 201fdbc42c ardrone flying now (still workaround of disabled rates controller) 2012-09-26 10:11:57 +02:00
patacongo 731b466aca If server fails to create a thread because of lack-of-resources (EAGAIN), don't terminate. Keep serving... Memory may become available again later. From Kate.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5191 42af7a65-404d-4744-a932-0658087f49c3
2012-09-25 22:47:11 +00:00
patacongo 2be7847efe Hook in NxWidgets configuration logic; Add a untested ADS7843E touchscreen support for the Shenzhou board; Complete the Shenzhou NxWM configuration (also untested).
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5190 42af7a65-404d-4744-a932-0658087f49c3
2012-09-25 22:04:51 +00:00
Julian Oes abbe998506 ardrone in the air again (workaround: rate controller disabled) 2012-09-25 21:35:02 +02:00
Julian Oes 0eae48d480 Merge remote-tracking branch 'upstream/ardrone' 2012-09-25 18:19:12 +02:00
Julian Oes 5c00ca343f forgot to remove printfs of magnetometer calibration 2012-09-25 16:39:15 +02:00
Julian Oes 6b0ed71ae0 Simplified magnetometer calibration routine 2012-09-25 16:36:33 +02:00
Julian Oes e217540e01 write all params to EEPROM for now (workaround to prevent standard values being written) 2012-09-25 10:51:13 +02:00
Julian Oes 268874fdb7 auto save after calibration (however the rest is reset to stock) 2012-09-25 10:31:19 +02:00
Julian Oes b5ec9c50f2 fix to set device for ardrone interface 2012-09-24 17:47:06 +02:00
Lorenz Meier 705172d302 Untested, but fully implemented attitude and/or inner rate control 2012-09-23 12:11:46 +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
patacongo b58026b8f0 Add missing STM32 F1 pin remapping definitions
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5180 42af7a65-404d-4744-a932-0658087f49c3
2012-09-22 22:25:21 +00:00
patacongo 5b51b5e3a4 hpttd.h needs to include stdbool.h
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5179 42af7a65-404d-4744-a932-0658087f49c3
2012-09-22 20:38:43 +00:00
patacongo c9bb9dd995 Adds support for keep-alive connections to webserver
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5178 42af7a65-404d-4744-a932-0658087f49c3
2012-09-22 20:36:36 +00: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
patacongo 1b7786e0e2 More webserver updates from Kate
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5173 42af7a65-404d-4744-a932-0658087f49c3
2012-09-22 12:23:35 +00:00
patacongo 4edf18b009 Add support for Fire STM32v3; sscanf fixes from Kate
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5168 42af7a65-404d-4744-a932-0658087f49c3
2012-09-21 17:32:30 +00:00
Lorenz Meier a56b4ffe26 Enabled mag updates again 2012-09-21 19:17:22 +02:00
Lorenz Meier 6c7e21bd1c Debugging output still enabled, fixed a number of additional issues 2012-09-21 19:14:50 +02:00
Lorenz Meier 1d96f0b853 Fixed stupid interface bugs, working 2012-09-21 17:19:28 +02:00
Lorenz Meier 8a11f76994 Updated C files for attitude estimator 2012-09-21 14:42:57 +02:00
Lorenz Meier eaa431e5ce Merge branch 'master' of github.com:PX4/Firmware into ardrone 2012-09-21 13:15:46 +02:00
Lorenz Meier 082074f991 Completely implemented offboard control 2012-09-21 12:55:41 +02:00
Lorenz Meier eaa6d0d4f2 Merge pull request #30 from julianoes/gps_fix
some gps fixes (only tested without gps attached)
2012-09-20 15:35:21 -07:00
Julian Oes d7085ba9e3 forgot to remove some rprintfs 2012-09-20 13:09:32 +02:00
Julian Oes df8bbb2d30 workaround in nuttx to allow for more than 6 arguments when starting an app (in my opinion needed) 2012-09-20 11:57:29 +02:00
Julian Oes e7241fb37f gps starting and stopping should be working correctly now, ubx not continuing whith configuring should be fixed 2012-09-20 11:56:30 +02:00
px4dev 42f040ab66 Merge from upstream NuttX
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5166 42af7a65-404d-4744-a932-0658087f49c3
2012-09-19 23:29:14 -07:00
Julian Oes 71b37a859c the gps_thread_should_exit flag is now static again, hope it works like this 2012-09-20 08:17:01 +02:00
Lorenz Meier 572efc3383 Fixes and style, deamonized filter 2012-09-19 22:48:57 +02:00
Lorenz Meier dbd6cbea60 Minor cleanups, correct sensor scaling 2012-09-19 22:43:00 +02:00
Lorenz Meier efcf146b6d Updated EKF filter, untested 2012-09-19 22:36:41 +02:00
Julian Oes f707a2ce60 fixed stacktrace which happened in configure_gps_ubx(int *fd) because of faulty file descriptor argument, added possibility to stop gps daemon (only tested without gps attached) 2012-09-19 22:28:13 +02:00
Lorenz Meier 291f4f3a33 Reworked control interface, needs testing / validation 2012-09-19 18:53:29 +02:00
Lorenz Meier 855fbe8543 Minor style and documentation cleanups 2012-09-19 07:42:32 +02:00
Lorenz Meier c0cc180876 Minor cleanups in fixed wing control 2012-09-19 07:42:05 +02:00
patacongo e592dcedf2 webserver update from Kate
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5164 42af7a65-404d-4744-a932-0658087f49c3
2012-09-18 23:31:35 +00:00
patacongo e9474a7707 Add default file name if URL is a directory, giving index.html behavior. From Kate
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5162 42af7a65-404d-4744-a932-0658087f49c3
2012-09-18 18:45:39 +00:00
patacongo 7d318ee113 Cosmetic updates to the ENC28J60 driver
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5161 42af7a65-404d-4744-a932-0658087f49c3
2012-09-18 18:32:31 +00:00
Lorenz Meier b0b72b11eb Reworking control infrastructure for inner rate loop, preparing offboard interface 2012-09-18 18:28:49 +02:00
patacongo 294e1a2df9 Fix ording of bytes in ENC28J60 MAC address; Web server refactoring from Kate
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5159 42af7a65-404d-4744-a932-0658087f49c3
2012-09-18 12:34:43 +00:00
tnaegeli df03433034 g
Signed-off-by: tnaegeli <naegelit@student.ethz.ch>
2012-09-18 13:49:18 +02:00
patacongo c3c602f93e Fix ENC28J60 Tx transmit (still a receive problem); Add HTTP 408 logic from Kate
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5158 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 23:02:58 +00:00
patacongo 77b8e554f8 Add option for single connection web server. From Kate.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5157 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 19:44:53 +00:00
patacongo 57623d42eb Resync new repository with old repo r5166
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 18:18:44 +00:00
Lorenz Meier 3816327977 SD log WIP, currently logs everything to one packet 2012-09-17 11:51:33 +02:00
Lorenz Meier 7a375ad670 Merge branch 'master' of github.com:PX4/Firmware into ardrone_tuning 2012-09-17 10:13:20 +02:00
Lorenz Meier f5dea9a1a5 Debugging / fixing attitude aliasing 2012-09-17 10:13:15 +02:00
px4dev 44adaa736c A system command that knows how to reflash the bootloader on the PX4FMU. 2012-09-16 23:41:26 -07:00
px4dev 22537447db Adjust to changes in the work queue API. 2012-09-14 22:59:42 -07:00
px4dev a3f21d9140 Merge branch 'NuttX/master' 2012-09-14 21:33:19 -07:00
px4dev 53fe61a621 Fix gyro/mag parameter names in calibration routines.
Thanks to AngeloDP for spotting this.
2012-09-14 20:15:29 -07:00
patacongo cfa24e37d6 Some ENC28J60-related fixes
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5154 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-14 21:48:07 +00:00
Lorenz Meier e5950ad498 Improved reporting / logging a lot, first usable version of SD card logger 2012-09-14 17:52:24 +02:00
patacongo cc0c42dd31 Add XML RPC server plus NXWM build fixes from Max Holtzberg
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5150 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-14 14:07:21 +00:00
Lorenz Meier a8fcd4a49c Merge branch 'master' of github.com:PX4/Firmware 2012-09-14 10:26:05 +02:00
Lorenz Meier 3a18a79bd5 Better log rate balancing 2012-09-14 10:25:59 +02:00
Lorenz Meier 5dd6cbcb13 Logging rate changes, 2012-09-14 10:24:49 +02:00
px4dev d7fb2175eb A simple file write performance test 2012-09-13 21:42:51 -07:00
Lorenz Meier a294ee2b87 Fixed mavlink timestamps, fixed SD logger, ready for flight tests 2012-09-13 23:35:20 +02:00
patacongo 0fb57027de Changes needed for clean ez80 compile with ZDS toolchain
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5147 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-13 19:33:47 +00:00
patacongo 2aa4af7139 Remove executable property from source and make files
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5146 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-13 18:46:10 +00:00
patacongo 77888ea156 Email address change in apps/
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5143 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-13 16:58:49 +00:00
patacongo f6ca2227e3 USB device drivers: Add hooks to to use common, external DMA buffer allocation implementation..
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5142 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-13 14:14:18 +00:00
patacongo a033a25dbf Rename all apps/examples/-/main.c to something unique
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5141 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-13 12:36:32 +00:00
Lorenz Meier e20c2541c6 Send back fake RC in HIL if getting joystick inputs 2012-09-13 00:24:00 +02:00
patacongo a444b0ebc4 Suppress network configuration in discover example if it is an NSH built-in functin
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5139 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-12 21:42:36 +00:00
patacongo 093ccf2015 Add UDP discovery configuration for the STM3240G-EVAL (from Max Holtzberg)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5138 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-12 20:14:46 +00:00
patacongo 4e8030a11a Network discover utility from Max Holtzberg
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5137 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-12 18:42:07 +00:00
Lorenz Meier 47c96d3d12 Quite flyable state 2012-09-12 18:50:24 +02:00
Lorenz Meier e4c3a44751 Fixed index in loading 2012-09-12 17:55:22 +02:00
Lorenz Meier ffceb37803 Committing WIP 2012-09-12 17:46:15 +02:00
Lorenz Meier 3536ad8010 Merge branch 'rc_cleanup' of github.com:PX4/Firmware into gps 2012-09-12 17:39:02 +02:00
Lorenz Meier 59bd9ae92b Re-enabled scaling for roll 2012-09-12 17:38:23 +02:00
px4dev 59b1402379 Compute the channel bound once before the loop runs. 2012-09-12 08:37:05 -07:00
Lorenz Meier c815aff842 Deamonized GPS app, fixed GPS issues, reworking RC input 2012-09-12 17:22:24 +02:00
Lorenz Meier 31ecc4d5df Working on correct RC outputs without magic numbers 2012-09-12 11:20:33 +02:00
Lorenz Meier cb57fdb28c Added ground estimator, fixed RC calibration 2012-09-12 10:34:49 +02:00
Lorenz Meier b7c8b7d9f1 fixed up RC inputs, removed magic numbers, added dead zones, needs testing 2012-09-12 00:26:55 +02:00
Lorenz Meier b573804456 Got rid of a bunch of magic numbers, manual controls can now be set up fine-grained 2012-09-11 23:54:26 +02:00
Lorenz Meier a74a455ab5 Fixed calibration routines to ignore previous offsets during calibration, added scale compensation for MPU-6000 2012-09-11 23:35:01 +02:00
patacongo 648420e67a Add support for DMA memory allocator to FAT file system
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5127 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-11 13:53:44 +00:00
patacongo de7764b1d4 AVR corrections from Richard Cochran; uIP webserver enhancements from Kate
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5126 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-11 13:19:59 +00:00
patacongo c7a2544230 The M3 Wildfire port is code complete and ready for test
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5125 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-10 22:26:37 +00:00
Lorenz Meier 31d028828c Comment fixes and polishing 2012-09-10 23:06:13 +02:00
Lorenz Meier e440fc4027 Rewrote SD logging app, simpler, but effective. Pending testing 2012-09-10 23:04:31 +02:00
patacongo 835eef47bd More M3 Wildfire logic; mmap-related bug fixes from Kate
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5124 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-09-10 20:00:04 +00:00
Lorenz Meier 0019f65b10 Merge branch 'master' of github.com:PX4/Firmware 2012-09-10 20:52:59 +02:00