Commit Graph

1678 Commits

Author SHA1 Message Date
Marco Bauer efd4250e84 timing changed and amber for manual added 2013-01-23 15:38:38 +01:00
Marco Bauer deb5fe5187 timing changed and amber for manual added 2013-01-23 15:29:24 +01:00
px4dev b66b234acd Merge branch 'master' into px4io-i2c 2013-01-22 19:56:14 -08:00
Simon Wilks 8ba3fbd0a3 Merged 2013-01-22 22:16:41 +01:00
Julian Oes f14c90c222 Some timeout needed to be raised for now to make ubx with baudrate 9600 working 2013-01-21 17:42:08 -08:00
Lorenz Meier 2ebb1812f1 Implemented airspeed measurement. Untested 2013-01-21 23:45:16 +01:00
Simon Wilks ecd01dc2e8 We aren't using RS485 but single wire. 2013-01-21 23:31:12 +01:00
Lorenz Meier ac215185a9 Better attitude filter, not sensitive to sudden accelerations 2013-01-21 17:30:53 +01:00
patacongo 70cab4d797 Centralize TCP loss-of-connection bit twiddling
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5542 42af7a65-404d-4744-a932-0658087f49c3
2013-01-20 17:21:42 +00:00
px4dev 48e497e406 Fix a leftover from the earlier merges; building should work now. 2013-01-19 18:05:53 -08:00
px4dev 15c85ba2cb Strip some debugging 2013-01-19 18:05:33 -08:00
patacongo 28a0cf4aa0 Yet another repair for the previouis botched recvfrom() fix; Fix telnet driver: It needs to break out of the read loop if 0 (meaning not conneced) of a value < 0 (an error) is encountered.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5541 42af7a65-404d-4744-a932-0658087f49c3
2013-01-20 00:41:33 +00:00
px4dev 5c34da06bc Merge pull request #151 from NosDE/master
BlinkM Driver with Systemstate
2013-01-19 13:18:57 -08:00
px4dev c1a1207b9a Merge pull request #171 from PX4/fault_detection
Attitude / position estimation and controller improvements
2013-01-19 13:17:28 -08:00
px4dev 7eb7836d2d Merge pull request #169 from PX4/home_position
Home position
2013-01-19 13:16:39 -08:00
px4dev e72d348548 Merge pull request #167 from PX4/log_improvements
Added logging improvements for microSD
2013-01-19 12:52:45 -08:00
px4dev 96df7b7fad Merge pull request #165 from julianoes/feature_ubx_model_configuration
Feature ubx model configuration
2013-01-19 12:52:16 -08:00
px4dev d7632b1794 Drop some commented code now the functionality is implemented. 2013-01-19 12:38:53 -08:00
px4dev 044e1a325a Merge branch 'master' into px4io-i2c 2013-01-19 11:43:03 -08:00
Lorenz Meier 4b9916eded Made threshold a bit nicer, still a magic number 2013-01-19 19:32:44 +01:00
jgoppert effc3001f4 Merge branch 'master' of git://github.com/PX4/Firmware into fault_detection 2013-01-19 13:04:02 -05:00
patacongo 070651221f Add split package logic to improve TCP send performance with delayed ACKs
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5538 42af7a65-404d-4744-a932-0658087f49c3
2013-01-19 16:40:43 +00:00
Lorenz Meier 2542722102 Fixed selective publication update 2013-01-19 17:11:12 +01:00
Lorenz Meier c9c64b3f25 Added missing flag, tested 2013-01-19 17:03:35 +01:00
Lorenz Meier d637842825 Fixed a number of smaller issues with log changes, ready to merge 2013-01-19 16:59:56 +01:00
Lorenz Meier f119d9fbda Added home position concept, uORB struct and MAVLink announcement of home position 2013-01-19 14:46:26 +01:00
Lorenz Meier d463c94ea1 Enable / disable logging while running, enabled black box logging (ringbuffer needed), enabled GPS KML logging (does not yet write outputs) 2013-01-19 12:45:23 +01:00
Lorenz Meier 3128529c3b Added logging improvements for microSD 2013-01-19 01:31:05 +01:00
patacongo 3ff155d048 Beginnings of definitions for the LPC1788; convert olimex-lpc1766stk to use kconfig-frontends
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5533 42af7a65-404d-4744-a932-0658087f49c3
2013-01-18 16:37:37 +00:00
James Goppert 4b2d1690d3 Set kalman_demo to only publish when it has valid info. 2013-01-18 10:21:20 -05:00
px4dev bc35bb23dd HOTFIX: disable interrupt-driven I2C mode, configure pessimistic I2C timeout, correct handling of the NAK generation for I2C master reads.
This looks like it addresses the recent I2C lockup issue, unfortunately it also increases CPU consumption by ~5% for the I2C sensor bus.
2013-01-18 00:43:57 -08:00
patacongo 76753ad9cb Add internal API task_reparent(), used in posix_spawn(). Move libc/spawn/lib_ps.c to sched/task_posixspawn.c; Move libc/spawn/spawn.h to include/nuttx/spawn.h
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5531 42af7a65-404d-4744-a932-0658087f49c3
2013-01-18 01:52:42 +00:00
Julian Oes 9ca472bbc7 Ubx configuration working again, gps app is still complicated and big but should be wrking better now 2013-01-17 16:54:32 -08:00
Julian Oes ebaa38ad1b ubx with 38400 working, all messages seem to arrive, configuration procedure is still funny (work in progress) 2013-01-17 16:54:32 -08:00
Julian Oes dce9b2d045 The CFG-NAV5 dynamic model is now checked as well 2013-01-17 16:54:32 -08:00
Julian Oes 80eb66c7a3 The config message was wrong, corrected (not tested) 2013-01-17 16:54:32 -08:00
Julian Oes c5ecf88bfb Added ubx configuration CFG-NAV5 to airborne with less than 2g acceleration (compiling, not tested) 2013-01-17 16:54:32 -08:00
patacongo 2f653578c6 Misc bug fixes related to NSH file execution
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5530 42af7a65-404d-4744-a932-0658087f49c3
2013-01-17 20:25:32 +00:00
Lorenz Meier dc5ddb9370 Defaulting to full auto in auto mode 2013-01-17 14:18:33 -05:00
patacongo 19e43efe23 NSH will now run files from the file system; Add logic to unload and clean-up after running a task from a file system; Extensions to builtin apps from Mike Smith
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5529 42af7a65-404d-4744-a932-0658087f49c3
2013-01-17 18:32:13 +00:00
James Goppert 13bb814f20 Prevented attitude correction from changing velocity when pos not init. 2013-01-17 12:18:20 -05:00
James Goppert c2c0baf843 Increased process noise. 2013-01-17 12:16:21 -05:00
James Goppert 612385a231 Merge branch 'master' of git://github.com/PX4/Firmware into fault_detection 2013-01-17 10:50:08 -05:00
patacongo e9d0885500 Add logic to automatically unload module on exit; Several patches from Mike Smith
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5528 42af7a65-404d-4744-a932-0658087f49c3
2013-01-17 14:43:55 +00:00
px4dev 8685f63c72 Some gentle massaging to get things building again. 2013-01-17 01:18:18 -08:00
px4dev 1a532d16dd Merge NuttX r5527 2013-01-17 01:00:46 -08:00
patacongo caeef71797 Change the way thread priority is handled in binfmt/ to better match the way that priority is set up for the builtin tasks
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5527 42af7a65-404d-4744-a932-0658087f49c3
2013-01-17 00:30:12 +00:00
patacongo e7e1c6aee0 convert configs/sim/nsh to use kconfig-frontends
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5526 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 21:38:00 +00:00
px4dev 4b07a9abd3 Add RC input configuration, update at startup and on parameter change (max 2 per second). 2013-01-16 13:02:49 -08:00
patacongo a568e1e63a Add a binary 'loader' so that builtin applications can be executed from the BINFS file system
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5525 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 19:08:23 +00:00
James Goppert 34d70bea4b Control tuning. 2013-01-16 13:55:49 -05:00
James Goppert ded442fd19 Added position initialization. 2013-01-16 13:27:04 -05:00
patacongo 38efdf0ce3 Rename apps/include/apps.h to builtin.h. Move parts of apps/builtins/exec_builtin.c to binfmt/libbuiltin/libbuiltin_utils.c
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5524 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 17:05:00 +00:00
patacongo 4f7967b4c6 apps/builtin/binfs.c moved to nuttx/fs/binfs/fs_binfs.c
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5523 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 15:41:27 +00:00
patacongo 77efc9f9cd BINFS now supports open, close, and FIOC_FILENAME ioctl
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5522 42af7a65-404d-4744-a932-0658087f49c3
2013-01-16 14:14:14 +00:00
px4dev 7b367c3eb3 Beat the px4io driver into compilable shape. Just missing RC input configuration now. 2013-01-15 23:01:04 -08:00
px4dev 646b926ac9 minor doc fix 2013-01-15 23:00:21 -08:00
px4dev d207d22a4f compile fix 2013-01-15 22:59:57 -08:00
px4dev b4dcdae03d Add support for battery current scaling. Add feedback for mixer load operations. 2013-01-15 22:22:15 -08:00
jgoppert 41ac3fdef9 Increased fault threshhold. 2013-01-16 00:25:53 -05:00
jgoppert f8811649cb Controller/ EKF tuning. 2013-01-16 00:24:14 -05:00
jgoppert ce3f835c63 Mag and velocity measurement fix. Fault detection working. 2013-01-15 23:36:01 -05:00
James Goppert 68a6a64213 Working on velocity errors. 2013-01-15 18:25:08 -05:00
patacongo fcb316906d Implement redirection of output from NSH builtin commands to a file in a mounted volume
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5521 42af7a65-404d-4744-a932-0658087f49c3
2013-01-15 21:01:37 +00:00
James Goppert afb69cd054 Reducing pos/att correction update rates for debugging. 2013-01-15 15:11:24 -05:00
James Goppert 28ef7aa1be Refactored RPos. Increased global pos output rate for debugging. 2013-01-15 14:03:04 -05:00
James Goppert 68b92cd4fc Slowed HIL status updates. Also prevented posCor. when gps not init. 2013-01-15 13:21:13 -05:00
James Goppert 9cf3d51aec Made fault tolerances adjustable. 2013-01-15 13:12:00 -05:00
James Goppert edf0a6bae7 Added check for valid attitude data. 2013-01-15 12:37:12 -05:00
James Goppert 022c30ea4f Enabled kf to run w/o gps. 2013-01-15 12:17:09 -05:00
James Goppert 281372ef3a Added mag dip/dec as parameters. 2013-01-15 11:36:49 -05:00
James Goppert 8b6660fc36 Fixed param issue. 2013-01-15 11:16:28 -05:00
James Goppert d02a24ec82 Adding comments to ekf. 2013-01-15 11:00:52 -05:00
px4dev 0eb5a070f1 Checkpoint: more work on the px4io driver. Add raw PWM passthrough ioctl. 2013-01-15 00:41:47 -08:00
px4dev 112f5ea969 Add support for raw PWM passthrough from FMU via IO. 2013-01-15 00:41:13 -08:00
px4dev f3a587dfce Wire the I2C device code into the register handler. 2013-01-15 00:40:41 -08:00
px4dev 2686344d58 Adjust the default deadzone for RC inputs per feedback. 2013-01-15 00:40:15 -08:00
px4dev 8da9a2c149 Merge branch 'master' into px4io-i2c 2013-01-14 21:20:17 -08:00
px4dev 854c6436b4 Pull NuttX up to the 6.24 release.
Merge branch 'nuttx-merge-5447'
2013-01-14 21:01:58 -08:00
James Goppert 5b0aa490d6 Added P0. Hid some printing. Corrected fault detection. 2013-01-14 18:38:32 -05:00
James Goppert 02a905df4c Merge branch 'master' of git://github.com/PX4/Firmware into fault_detection 2013-01-14 18:13:07 -05:00
Lorenz Meier 35f0f570a6 Hotfix for current active waypoint ID 2013-01-14 23:48:07 +01:00
James Goppert 4613d1247d Added param comments for FWB controller. 2013-01-14 17:15:43 -05:00
Marco Bauer f0edb59d7e some major changes 2013-01-14 21:58:42 +01:00
patacongo cc3614dfe8 Finish dup logic for open files; fix bug in sigtimedwait(), would return wrong signo value if the signal was already pending
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5517 42af7a65-404d-4744-a932-0658087f49c3
2013-01-14 19:22:32 +00:00
James Goppert c49320a03e Working on fault detection tolerances. 2013-01-14 13:49:30 -05:00
James Goppert a13cf90e0a Increased KF process noise. 2013-01-14 13:12:01 -05:00
px4dev c38ad4ded5 Fix the 'time' test, now that rand() seems to be working. 2013-01-14 10:08:47 -08:00
Julian Oes 8bc2338466 Adapted upper and lower values for test jig voltages 2013-01-14 09:18:17 -08:00
jgoppert 940d43cb9c Merge branch 'master' of git://github.com/PX4/Firmware into fault_detection 2013-01-14 11:58:21 -05:00
patacongo 930f9a1351 Add support for dup2'ing files. Infrastructure and ROMFS done. Still need FAT, BINFS, NXFFS, and NFS
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5516 42af7a65-404d-4744-a932-0658087f49c3
2013-01-14 15:42:03 +00:00
px4dev 5c60ed9a94 Fix up FMU input timeout handling.
Fix the FMU auto OK LED status.
Strip out unused fields from the system state structure.
2013-01-14 01:11:29 -08:00
px4dev 06b66ad065 Don't advertise things we don't have anymore. 2013-01-14 01:09:42 -08:00
px4dev 2dc47160f4 Factoring and comments. 2013-01-14 00:30:18 -08:00
px4dev 2311e03379 Start reworking the px4io driver to use the I2C interface instead. 2013-01-14 00:19:01 -08:00
px4dev 6e291ddedc Add a mechanism for sending multi-part messages to the I2C driver base class. 2013-01-14 00:18:05 -08:00
jgoppert f2d2aafb8d Fault detection working, but GPS velocity measurement causing fault.
Possible error in HIL script or progpagation/ F matrix of EKF.
2013-01-14 01:32:34 -05:00
jgoppert 3db216380b Changing measurement units for gps, not working well yet. 2013-01-14 01:09:02 -05:00
px4dev 4e38615595 Major workover of the PX4IO firmware for I2C operation. 2013-01-13 19:05:01 -08:00
px4dev 8ebe21b27b Checkpoint - I2C protocol register decode 2013-01-13 19:05:01 -08:00
px4dev b0fb86a693 Sketch out the protocol as it will be on top of I2C 2013-01-13 19:05:01 -08:00
px4dev 1cecba2a86 Turn off i2c slave debug output for real. 2013-01-13 19:05:01 -08:00
px4dev 5e35491a38 We can't have DMA on both I2C1 and USART2. Since we need it more for I2C, and since USART2 is going back to being ignored once I2C works, let's make the call.
Turn off the debug output on I2C for now.
2013-01-13 19:05:01 -08:00
px4dev 329f595bca Don't try to set up serial polling before the HRT has been started. 2013-01-13 19:05:00 -08:00
px4dev 469d13fdfe Implement serial receive DMA for the F1xx. This is not quite working right yet. Some clients work, others not so much. 2013-01-13 19:05:00 -08:00
px4dev 97136375e3 Turn off the I2C register dump at startup. 2013-01-13 19:05:00 -08:00
px4dev 4f285f7c80 Configure the DMA channels in circular mode so that we don't have to deal with the case where DMA stops but the master is still talking.
Use AF as well as STOPF to decide when transfer has ended. We don't seem to get STOPF when we are transmitting.
2013-01-13 19:05:00 -08:00
px4dev 3cea0959b7 Implement a simple byte loopback server on I2C for more testing. 2013-01-13 19:05:00 -08:00
px4dev 2fb820fabd I2C slave RX DMA works. 2013-01-13 19:05:00 -08:00
px4dev 0dab53ae26 Implement I2C slave DMA. Not working yet. 2013-01-13 19:05:00 -08:00
px4dev f12fa7ee06 Don't do retries, since it just complicates things. 2013-01-13 19:04:59 -08:00
px4dev 7c2445f74d Don't waste time printing when we have errors - that causes the master to time out 2013-01-13 19:04:59 -08:00
px4dev 811790a14f Checkpoint I2C slave work on IO 2013-01-13 19:04:59 -08:00
James Goppert 5745cfae38 Tracking down gps ekf bug, not enough precision for GPS in rad. 2013-01-13 21:12:24 -05:00
px4dev 9faf348cf5 Merge pull request #156 from jgoppert/sensor_hil_rebase
Rebase of changes to sensor_hil_fixedwing branch.
2013-01-13 17:55:15 -08:00
James Goppert 63e6ea1b95 Changed fault tolerances. 2013-01-13 19:51:40 -05:00
James Goppert 0ccdbd78f6 More formatting. 2013-01-13 19:23:59 -05:00
James Goppert e02791ee8e Added assertion, fixed formatting. 2013-01-13 19:21:40 -05:00
James Goppert 69f6fe51bc More fixes. 2013-01-13 19:08:27 -05:00
James Goppert e3d0e0216b Fixed comment. 2013-01-13 19:05:58 -05:00
Lorenz Meier 5ad8e645f4 Removed last bogus references to battery voltage from sensor combined topic 2013-01-14 00:42:20 +01:00
James Goppert f7c31e4d80 Reduced stack size for mavlink receiver. 2013-01-13 18:41:03 -05:00
James Goppert 56e15ab1f4 Working on comments. 2013-01-13 18:38:09 -05:00
James Goppert ea3ce8de85 Reboot fix. 2013-01-13 18:22:35 -05:00
James Goppert 6d8983e908 Fixed HIL state machine issue with reboot. 2013-01-13 17:43:30 -05:00
James Goppert a40f41d216 Change default vehicle type to fixedwing. 2013-01-13 17:35:56 -05:00
James Goppert 464c5245f2 Rebase of changes to sensor_hil_fixedwing branch. 2013-01-13 17:25:45 -05:00
Lorenz Meier 0fdf962356 Merge pull request #150 from PX4/app-auto-deps
Use the compiler to generate app dependencies
2013-01-13 13:54:47 -08:00
px4dev ff146cc5b1 Merge pull request #148 from PX4/adc_integration
Selected adjustments / fixes to make old apps compatible with new-style ADC
2013-01-13 13:43:45 -08:00
Lorenz Meier 9ac2684ca0 Printing error reason in warning 2013-01-13 22:42:12 +01:00
px4dev 58ea9fbf01 Merge pull request #154 from PX4/file_test_fix
Fixed #153 - when no microSD card is present, test used to hang, now abo...
2013-01-13 11:16:03 -08:00
patacongo b3f3dd123c Use SIGCHLD with waitpid(); implemented wait() and waitid()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5515 42af7a65-404d-4744-a932-0658087f49c3
2013-01-13 18:53:00 +00:00
Marco Bauer 825012b029 switched to initialiser list and member variables 2013-01-13 18:04:07 +01:00
Marco Bauer edc3ae7b6c some changes in structure 2013-01-13 13:50:07 +01:00
Lorenz Meier ca690f6027 Fixed #153 - when no microSD card is present, test used to hang, now aborts with error. 2013-01-13 09:35:56 +01:00
Lorenz Meier a6a6d9c457 Merge branch 'master' of github.com:PX4/Firmware into adc_integration 2013-01-13 09:25:12 +01:00
Lorenz Meier 054bb69cc7 Showing correct test count also in success case 2013-01-13 09:24:51 +01:00
patacongo ffda55b34a Cosmetic cleanup from SIGCHLD changes
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5514 42af7a65-404d-4744-a932-0658087f49c3
2013-01-13 00:35:47 +00:00
Lorenz Meier acbfd66e67 Cleaned up tests further, in anticipation of merges with other branches 2013-01-12 23:26:26 +01:00
Lorenz Meier 15b61d4c15 Improved battery voltage init, removed bogus printf() from debugging 2013-01-12 22:41:32 +01:00
Marco Bauer 8ec566d0cb fix number of satellites 2013-01-12 21:54:39 +01:00
px4dev dba244a8d4 Fix a build breaker, remove C*HDRS as they aren't used. 2013-01-12 12:46:46 -08:00
px4dev 1c63eda98b Objects depend on the makefile chain as well. 2013-01-12 12:39:29 -08:00
px4dev 5b07efdbeb Automatically generate depdencies for source files as they are compiled, rather than using the NuttX dependency generator tool. 2013-01-12 12:10:06 -08:00
px4dev 6d301710d9 Suppress warnings from ARM's DSP_Lib code that are spamming developers to no benefit.
Addresses #149
2013-01-12 12:08:03 -08:00
patacongo b58281cab8 Fix a *critical* bug in the task exit logic. Implements SIGCHILD
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5513 42af7a65-404d-4744-a932-0658087f49c3
2013-01-12 19:58:45 +00:00
Marco Bauer 41cef1d6c5 merged systemstate into blinkm driver 2013-01-12 10:26:37 +01:00
Lorenz Meier 6c1b00e22f Counting the number of tests correctly 2013-01-12 00:53:45 +01:00
Lorenz Meier dad7f9f436 Selected adjustments / fixes to make old apps compatible with new-style ADC driver 2013-01-12 00:38:49 +01:00
patacongo 43e22b2b98 Fix an error handling bug in the fread logic
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5511 42af7a65-404d-4744-a932-0658087f49c3
2013-01-11 19:08:51 +00:00
Lorenz Meier 419896f983 WP fix contributed by James Goppert 2013-01-11 18:02:47 +01:00
patacongo e7a5090e55 Various changes while debugging posix_spawn
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5510 42af7a65-404d-4744-a932-0658087f49c3
2013-01-11 16:53:44 +00:00
Simon Wilks 64925c33cd Merged 2013-01-11 16:52:42 +01:00
px4dev 2b37f33a22 The tests structure doesn't need to be writable. 2013-01-11 02:39:56 -08:00
px4dev 0267782782 Recover changes lost to bad merging. 2013-01-11 02:32:05 -08:00
px4dev ca305933a1 Merge commit 'eaf1d8063cc707b1041e8583663d9edd45f42c5d' into nuttx-merge-5447
Build system updates to sync with NuttX upstream.
2013-01-11 00:45:25 -08:00
px4dev ccf9882dc5 Merge branch 'master' into nuttx-merge-5447 2013-01-11 00:39:22 -08:00
Lorenz Meier 31ca806958 More print cleanups in commander app 2013-01-11 08:24:28 +01:00
Lorenz Meier 9608dfefa3 Stripped a lot of text from commander app 2013-01-11 08:18:12 +01:00
Lorenz Meier b52402dbe2 Fixed code style for mavlink app 2013-01-11 07:48:09 +01:00
Lorenz Meier fdf1c712b1 Fixed code style for conversions 2013-01-11 07:47:22 +01:00
Lorenz Meier 970ae0c13e Fixed code style for attitude estimator 2013-01-11 07:46:40 +01:00
Lorenz Meier cded2787f0 Fixed code style for multirotor_att_control app 2013-01-11 07:45:24 +01:00
Lorenz Meier cf563eda86 px4io code style 2013-01-11 07:44:17 +01:00
Lorenz Meier dc100f2020 Fixedwing controller code style 2013-01-11 07:44:03 +01:00
Lorenz Meier 9ab20b11b6 Code style 2013-01-11 07:42:09 +01:00
Lorenz Meier d6116d9564 Merge branch 'master' of github.com:PX4/Firmware into fixedwing 2013-01-11 07:36:44 +01:00
Lorenz Meier 65c8028629 Working on override channel mapping, allowed trim cal only with RC on 2013-01-11 07:35:40 +01:00
Julian Oes b5eccef69e Started with px4io stop implementation 2013-01-10 15:49:53 -08:00
Julian Oes 5e20dd1736 Added support for IO bootloader revision 3 on FMU 2013-01-10 15:35:47 -08:00
patacongo 7609c9a192 Fix problem with initialization of file actions
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5508 42af7a65-404d-4744-a932-0658087f49c3
2013-01-10 23:06:23 +00:00
patacongo f011bd7ef6 Added a test of posix_spawn()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5507 42af7a65-404d-4744-a932-0658087f49c3
2013-01-10 21:39:57 +00:00
patacongo 6f241ed044 Add interfaces to dynamically change symbol tables used by posix_spawn, execv, and execl. This is needed for testing.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5506 42af7a65-404d-4744-a932-0658087f49c3
2013-01-10 20:00:08 +00:00
Lorenz Meier 1d4feb6905 Merged sdlog_buffering branch 2013-01-10 14:43:59 +01:00
Lorenz Meier 1a107bd7bf Added warning, needs more work on the rotation matrix output 2013-01-09 16:56:23 +01:00
Lorenz Meier 447bcb990d Merge branch 'fixedwing' of github.com:PX4/Firmware into fixedwing 2013-01-09 16:52:45 +01:00
Lorenz Meier 4435befefd Added offset parameters for roll, pitch and yaw 2013-01-09 16:52:15 +01:00
Lorenz Meier 955ae0aa45 Merged 2013-01-09 16:40:09 +01:00
Lorenz Meier 16e49c447d Added support for battery voltage and differential pressure to logging and plot script 2013-01-09 16:37:45 +01:00
Lorenz Meier e1a6f1b910 Merge branch 'master' of github.com:PX4/Firmware into sdlog_buffering 2013-01-09 16:26:12 +01:00
Lorenz Meier d957f8e004 Hotfix: Copying from right actuator topic on IO if FMU and IO PWM outs are enabled 2013-01-09 13:11:06 +01:00
Lorenz Meier 6c93cbfa5e Merge branch 'master' of github.com:PX4/Firmware into fixedwing 2013-01-09 09:41:52 +01:00
Lorenz Meier 6f8081b5ea Merge branch 'master' of github.com:PX4/Firmware into sdlog_buffering 2013-01-09 09:41:07 +01:00
Lorenz Meier 3bb145f584 Enabled and tested ring buffer, logging at full 250 Hz sensor rate 2013-01-09 09:39:51 +01:00
px4dev b5424a4d02 Fix the CMSIS DSP_Lib include path specification. This avoids some scary messages from 'make depend'. 2013-01-08 14:40:20 -08:00
Lorenz Meier b48f99b601 Updated state switching to most recent state machine rev 2013-01-08 22:22:22 +01:00
Lorenz Meier 780087acf0 Merged with master 2013-01-08 21:25:38 +01:00
unknown 1998ce1205 Battery-Warn-State added to struct Vehicle_Status 2013-01-08 20:37:47 +01:00
Lorenz Meier b78a430424 Merge branch 'master' of github.com:PX4/Firmware into sdlog_buffering 2013-01-08 17:41:33 +01:00
Lorenz Meier 8cc9fb9e2c Merge branch 'master' of github.com:PX4/Firmware into fixedwing 2013-01-08 17:40:44 +01:00
px4dev 01ea8eb54f Test for CortexM4 and FPU rather than the ARM mathlib-internal define. 2013-01-08 08:26:04 -08:00
px4dev ee5cd2c95a Rather than assume that px4fmu means CMSIS DSPlib, test for cortex M4 and FPU. 2013-01-08 08:25:06 -08:00
Lorenz Meier 435bae6542 Added logging with worker thread for microSD writes, untested, but feature-complete 2013-01-08 14:57:12 +01:00
patacongo 3d160e45b6 Documentation update
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5491 42af7a65-404d-4744-a932-0658087f49c3
2013-01-08 00:04:12 +00:00
patacongo a9f2c6fa8a Fixed ARM vfork; re-enabled vfork OS test
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5490 42af7a65-404d-4744-a932-0658087f49c3
2013-01-07 23:50:25 +00:00
patacongo 5a9162f017 Disable the vfork() OS test... it fails
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5489 42af7a65-404d-4744-a932-0658087f49c3
2013-01-07 23:09:09 +00:00
Lorenz Meier 2169e1f808 Merge branch 'master' of github.com:PX4/Firmware into mathlib 2013-01-08 00:02:57 +01:00
patacongo 66cdd288ab Add ostest vfork test (does not work yet)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5488 42af7a65-404d-4744-a932-0658087f49c3
2013-01-07 21:41:20 +00:00
Lorenz Meier fe5f9d46d5 Merge branch 'master' into fixedwing 2013-01-07 22:23:41 +01:00
Lorenz Meier e24dd0f684 Fixed minor compile error 2013-01-07 22:23:24 +01:00
Lorenz Meier 41f657e3e5 Merged with master 2013-01-07 17:50:49 +01:00
Lorenz Meier 451b38b39f Removed commented-out lines (EXP support) 2013-01-07 17:39:18 +01:00
px4dev 91dba46524 Fix fallout from removing the spurious CMSIS 2013-01-06 19:20:22 -08:00
px4dev e88a981093 Merge commit '23e8d0b4675e1101a5dd38fa48f96ec3c13ca68b' into local/mathlib
Fix the controllib test_params build.
2013-01-06 15:23:12 -08:00
px4dev faced6bfe3 Merge James's controllib bits into a separate library module.
Add a top-level mathlib header to avoid having to dig around for specific headers.
2013-01-06 15:04:30 -08:00
px4dev 950d104c8d Merge commit '8888b73e160520e5b15e168998013f4a5f6e64c0' into local/mathlib 2013-01-06 13:58:52 -08:00
px4dev 43ccb257a8 Move the math library pieces out of systemlib into mathlib 2013-01-06 13:56:49 -08:00
jgoppert 23e8d0b467 Added kalman_demo. This is an attitude/position EKF example. 2013-01-06 16:05:06 -05:00
px4dev 98a53e85d6 Merge commit 'd9491b20cc5fc8b683eb0f60a50da6b322b55e57' into local/mathlib 2013-01-06 12:57:33 -08:00
px4dev 95aa959571 Merge commit '4f3b17f53b120cd54112097f4217a90863013c1f' into local/mathlib 2013-01-06 12:57:28 -08:00
px4dev e0cf9f943a Merge commit 'db3fabc3baccdeef3108544b4e9da9c8f0895a58' into local/mathlib 2013-01-06 12:57:22 -08:00
px4dev 4447282260 Integrate the interesting parts of the CMSIS 3.01 (r3p1) DSP library 2013-01-06 12:52:05 -08:00
jgoppert 84d7f19d7d Added control library to build. 2013-01-06 15:47:07 -05:00
jgoppert 8888b73e16 Added control library. 2013-01-06 15:41:23 -05:00
jgoppert d9491b20cc Reformat of math library with astyle. 2013-01-06 15:33:55 -05:00
jgoppert 4f3b17f53b Added math library to build. 2013-01-06 14:20:24 -05:00
jgoppert db3fabc3ba Added math library. 2013-01-06 14:08:50 -05:00
patacongo 0d86268de6 Remove CONFIG_BUILTIN_APPS_START
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5482 42af7a65-404d-4744-a932-0658087f49c3
2013-01-06 17:00:08 +00:00
Lorenz Meier 0945a2cc2f Fixed RC mapping transmission, tested. Fixed RC scaling in manual mode 2013-01-06 14:43:37 +01:00
Lorenz Meier ef2efabbd4 Removed unlimited printing status message 2013-01-06 14:43:10 +01:00
Lorenz Meier ac784dc638 Merge branch 'master' into fixedwing 2013-01-06 12:41:19 +01:00
Lorenz Meier ec3d298720 Fixed minor compile error 2013-01-06 12:40:29 +01:00
Lorenz Meier 2bd4301849 Merge branch 'master' of github.com:PX4/Firmware into fixedwing 2013-01-06 12:37:13 +01:00
Lorenz Meier c94076f673 Added missing ADC start command, fixed return value / error behavior of ADC init 2013-01-06 12:36:46 +01:00
Lorenz Meier f788d452ea Merged 2013-01-06 11:47:30 +01:00
Lorenz Meier 34d078b556 Merged latest master 2013-01-06 11:32:08 +01:00
Lorenz Meier 359989a2eb Merge branch 'master' of github.com:PX4/Firmware into fixedwing_io_mixing_adc 2013-01-06 11:25:24 +01:00
Lorenz Meier d3fd3d8219 Merged, compiling 2013-01-06 11:25:17 +01:00
px4dev 58309fd6a8 Merge branch 'master' of https://github.com/PX4/Firmware 2013-01-06 02:02:14 -08:00
px4dev 6ae9f03544 Merge commit '375d3c14d742248b434c080527886a95ea1d563f' 2013-01-06 02:01:53 -08:00
px4dev 5cc76018ff Merge commit '920608bf3671662f94b4939ffdaf6fde2b08edff' 2013-01-06 02:01:41 -08:00
px4dev a03396e3f3 Merge commit '0fff8aa23b477bebda9c1a79f5cd0b5eceeb95d1' 2013-01-06 01:55:21 -08:00
px4dev 18385c2d97 Merge commit '63464a8959d90bd92c4998a80992c416b85c2057' 2013-01-06 01:55:00 -08:00
Lorenz Meier 329ac2f4ba Merged master 2013-01-06 10:50:41 +01:00
Lorenz Meier e2317edde8 Code style fix 2013-01-06 10:45:19 +01:00
Lorenz Meier 1b2e886878 Removed unwanted cast 2013-01-06 10:24:00 +01:00
Lorenz Meier f89cd312ec Used correct datatype, removed unwanted cast 2013-01-06 10:16:50 +01:00
Lorenz Meier a9e87c791d Fixed header for sbus input 2013-01-06 10:13:53 +01:00
Lorenz Meier 3c85f8267f merged relay changes from master 2013-01-06 09:51:38 +01:00
px4dev 9df2aaf312 Merge branch 'master' into #111-px4io-integrated-mixing
Fix a botched merge for #106 at the same time.
2013-01-06 00:40:17 -08:00
px4dev b3e16b4861 Merge pull request #123 from PX4/#106-px4io-relays
Initial implementation of application access to the PX4IO relays.
2013-01-06 00:32:04 -08:00
Simon Wilks 7842caf3b2 Moved the channel mappings and attributes to the config section 2013-01-06 04:21:04 +01:00
Lorenz Meier ad7637861d Merge branch 'master' of github.com:PX4/Firmware into fixedwing_io_mixing 2013-01-06 01:32:55 +01:00
Lorenz Meier 83039e76d3 Reverted unwanted S.Bus changes 2013-01-06 01:32:39 +01:00
Lorenz Meier aaa9af2293 Reverting EKF change, as it did not really help. 2013-01-06 00:58:35 +01:00
Lorenz Meier 8eb8909a3c Merge branch 'master' of github.com:PX4/Firmware into px4io-adc-integration-battery-msg 2013-01-06 00:50:51 +01:00
Simon Wilks 0a89ab7075 Send rc channel ordering and channel attributes from FMU to IO 2013-01-05 22:13:12 +01:00
Andrew Tridgell 318609bf59 fixed PWM_SERVO_GET
this was using the wrong channel
2013-01-06 06:31:37 +11:00
Andrew Tridgell 0134186420 fixup rate 2013-01-06 06:31:00 +11:00
Andrew Tridgell 219ab05a70 added PWM_SERVO_SET_UPDATE_RATE ioctl
this allows apps to set the PWM update rate. APM needs this to honor
the user configurable PWM rate setting for copters.
2013-01-06 06:29:28 +11:00
Simon Wilks 1b81724ef7 Manually remap the channel assignements for testing. 2013-01-05 15:46:26 +01:00
px4dev 69cdab9afc Fix a typo that caused PWM_SERVO_GET ioctls to fail on the FMU PWM outputs. 2013-01-04 23:41:21 -08:00
Julian Oes e4bfd78847 Attention: flipped the yaw direction of multirotors in order to be compatible to APM 2013-01-02 13:29:33 -08:00
Andrew Tridgell 8ffba22771 build: allow for external apps via EXTERNAL_APPS
this is used by the APM build
2013-01-02 17:39:12 +11:00
Andrew Tridgell 0fff8aa23b GPS: added comment on units for variance 2013-01-02 17:38:28 +11:00
Andrew Tridgell 63464a8959 mavlink: fixed build warning 2013-01-02 17:37:55 +11:00
px4dev dc50d96b5d Merge commit '0f2decb70f505b108999fcdb80e89d7aae6760ce' into nuttx-merge-0f2decb 2013-01-01 15:33:39 -08:00
patacongo 5d6b2017a0 All lm3s6965-ek configurations converted to use kconfig-frontends
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5471 42af7a65-404d-4744-a932-0658087f49c3
2013-01-01 16:34:12 +00:00
Lorenz Meier 803352e722 Fixed stupid copy/paste typo 2013-01-01 13:39:00 +01:00
Lorenz Meier 4eb7df6ff5 Introduced battery_status uORB topic, changed sensors app to publish to it, extended px4io driver to publish to it. Both do only so if the battery voltage is reasonably high, at 3.3V 2013-01-01 13:30:24 +01:00
px4dev d93fda20fd Add ADC measurements and reporting to PX4IO, including calibration for the battery input. 2012-12-31 21:06:26 -08:00
px4dev 9be1f99935 Add trivial ADC support to PX4IO. 2012-12-31 19:41:18 -08:00
px4dev bd2f6b58e6 Configure ADC GPIOs on IO 2012-12-31 19:40:41 -08:00
px4dev b167912b1b Enable the temperature sensor channel for F2/F4 devices. 2012-12-31 18:31:37 -08:00
px4dev bc432b1feb Cleanup and add support for multiple channels. 2012-12-31 17:06:30 -08:00
Julian Oes 805c08815e The multirotor mixer return 0 instead of the number of channels, my Hex is flying now (not reliably now, random flips 2012-12-31 16:12:55 -08:00
Julian Oes 8d1b1354e1 A wrong parameter name in commander was responsible for manual override always ok 2012-12-31 12:31:31 -08:00
patacongo 167854a980 Remove non-functional WLAN examples, configurations
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5468 42af7a65-404d-4744-a932-0658087f49c3
2012-12-31 13:44:36 +00:00
px4dev 22f5a1dc94 First cut at a simple® ADC driver built on our driver framework. 2012-12-31 01:30:57 -08:00
Lorenz Meier 0cc723dbc3 Fixed connection loss / failsafe detection, added decoding of two switch channels if IO supports 18 RC channels. Loss is tested, switch channels are not. 2012-12-31 09:21:44 +01:00
Lorenz Meier 7972a56076 State machine / switching improvements 2012-12-31 00:41:11 +01:00
Lorenz Meier 1b82dbb58d Merge branch '#111-px4io-integrated-mixing' of github.com:PX4/Firmware into fixedwing_io_mixing 2012-12-31 00:34:12 +01:00
px4dev dbb841b0dc Rework the way we scan text for scaler definitions; something weird was going on with sscanf's handling of %n that wasn't obvious. This seems to work around the issue. 2012-12-30 15:09:21 -08:00
px4dev f2d4eb2887 Revert "Removed text reuse, causing crash with stack trace"
This reverts commit 668d1b3301.
2012-12-30 15:08:25 -08:00
patacongo e88ff3cdfa Fix the nxlines configuration for the zp214xpa board
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5467 42af7a65-404d-4744-a932-0658087f49c3
2012-12-30 21:12:43 +00:00
Lorenz Meier 36d556256f Merge branch '#111-px4io-integrated-mixing' into fixedwing_io_mixing 2012-12-30 14:03:33 +01:00
Lorenz Meier 668d1b3301 Removed text reuse, causing crash with stack trace 2012-12-30 13:58:30 +01:00
Lorenz Meier 234af06571 Fixed merge error 2012-12-30 12:05:38 +01:00
Lorenz Meier 1da1b8f49c Merge branch 'fixedwing_outdoor' into fixedwing_io_mixing 2012-12-30 11:01:59 +01:00
Lorenz Meier 2577e1a749 Removed compile errors, removed non-wanted MAVLink dependency in commander app 2012-12-30 11:01:09 +01:00
Lorenz Meier abe1b9759a Merged IO mixing branch 2012-12-30 10:49:27 +01:00
px4dev f6ea42ab5e Fix px4io signal test command to force FMU armed state. 2012-12-30 01:28:07 -08:00
px4dev fd016abd46 Implement the remaining pieces of mixer upload to PX4IO. 2012-12-30 01:17:19 -08:00
px4dev c740e9c616 Add a receive error counter for debugging purposes. 2012-12-30 01:16:54 -08:00
px4dev b14abad3a0 Fix logic for handling partial buffers. 2012-12-30 01:16:28 -08:00
Lorenz Meier 142556b442 merged 2012-12-30 10:03:05 +01:00
Lorenz Meier 62a95bf8e6 Stabilization enabling / switching 2012-12-30 09:53:45 +01:00
px4dev 85375c2201 Rename the FMU->IO output controls to reflect the fact that they are controls, not servo values. 2012-12-29 17:15:48 -08:00
px4dev b8250de1e6 Assorted compile fixes. 2012-12-29 16:22:30 -08:00
px4dev d81edb09cf whitespace/formatting 2012-12-29 16:01:24 -08:00
px4dev f9520ee39d Factory method for a simple mixer that converts PWM/PPM values to the standard internal format. 2012-12-29 16:00:50 -08:00
Lorenz Meier 0298714db5 Merge branch 'fixedwing_outdoor' of github.com:PX4/Firmware into fixedwing_outdoor 2012-12-30 00:04:54 +01:00
px4dev 0ae5997bd0 Fix some scaling errors in the PWM <-> mixer-internal conversions. 2012-12-29 13:28:32 -08:00
px4dev 6b9d5dac4d Rough in the new mixer path for PX4IO. 2012-12-29 12:58:41 -08:00
px4dev 6ede0e2f18 Add the ability to reset a mixer group. Report the remaining buffer size from load_from_buf. 2012-12-29 12:58:10 -08:00
px4dev d5da457e29 Fix PX4IO to run C++ static ctors 2012-12-29 12:57:29 -08:00
Lorenz Meier 4976a3a47d Added accel magnitude check, added conversion functions for various standard cases 2012-12-29 16:21:59 +01:00
Lorenz Meier b240e31c1c Safer fixed wing mode switching 2012-12-29 11:18:49 +01:00
Lorenz Meier c652f718c0 Minor fixes, pushing WIP 2012-12-29 11:00:15 +01:00
px4dev 35c82ff2fc Make mixer ioctls load from a memory buffer rather than a file. This is prep for uploading the memory buffer to IO to be processed there. 2012-12-29 00:01:04 -08:00