Commit Graph

1704 Commits

Author SHA1 Message Date
Julian Oes c19870d565 Merge remote-tracking branch 'upstream/master' into attitude_filter_improvement 2013-01-30 10:36:05 -08:00
patacongo 7f22c14077 Add support for a login script (in addition to the init script); Add logic so that a USB console session can connect and reconnect to the USB serial device
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5582 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 22:11:04 +00:00
patacongo 6ebd56f299 The USB monitor now works with configs/stm32f4discovery/usbnsh
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5581 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 18:32:04 +00:00
patacongo fb94bc1258 The USB monitor now works with the stm32f4discover/nsh configuration (but not with the usbnsh configuration)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5580 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 17:42:58 +00:00
patacongo 2946cb47a8 USB monitor daemon updates
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5579 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 13:30:10 +00:00
px4dev 9197df46dd Merge branch 'master' into px4io-i2c 2013-01-28 21:58:55 -08:00
patacongo 79ccfa4ae6 Add syslog.h; rename lib_rawprintf() to syslog()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5578 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 21:55:16 +00:00
patacongo 433dae7422 Beginning of apps/system/usbmonitor (incomplete); more LM4F changes from JP
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5577 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 18:45:09 +00:00
patacongo d3e4a31ac5 configs/stm32f4discovery/nsh converted to use kconfig-frontends
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5573 42af7a65-404d-4744-a932-0658087f49c3
2013-01-27 20:05:29 +00:00
patacongo e96d8f046b Add a start hook that can be setup to call a function in the context of a new thread before the new threads main() has been called.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
2013-01-27 15:52:58 +00:00
Lorenz Meier 815f643819 Merge pull request #67 from sjwilks/hott
Implementation of the Graupner HoTT telemetry protocol
2013-01-27 03:43:19 -08:00
px4dev 338f769202 Merge branch 'master' into px4io-i2c 2013-01-26 21:17:39 -08:00
px4dev 43ead720a7 Now that we're mostly done with I2C, the old serial interface can be cleaned out. 2013-01-26 21:17:10 -08:00
px4dev 636e0cc56a It looks like retrying reads from the ms5611 is not safe either. 2013-01-26 20:23:19 -08:00
px4dev 6d0363faff Disarm IO at driver startup time. 2013-01-26 19:43:23 -08:00
px4dev 981477c785 Re-order register page variables to match the order registers are defined in the protocol header. 2013-01-26 19:24:18 -08:00
px4dev 666d3a401b Rename ::start to ::start_cycle to avoid confusion with the other start function.
Only enable I2C retries on operations that have no side-effects.
2013-01-26 18:55:26 -08:00
px4dev 621063ac08 Increase the number of I2C retries. 2013-01-26 17:10:04 -08:00
px4dev 33c12d13ad Defer I2C bus resets for the first couple of retries to avoid transient slave errors causing massive retry spam. 2013-01-26 17:07:58 -08:00
px4dev 7864176b5a A couple of logic fixes from Tridge. 2013-01-26 16:37:35 -08:00
Andrew Tridgell c0a46c4b93 px4io: fixed logical vs bitwise typo 2013-01-26 16:20:34 -08:00
Andrew Tridgell 5ee52138c4 px4io: ensure RC_OK status flag is set on good input 2013-01-26 16:20:02 -08:00
px4dev 52ff9b7d43 Use multi-part transactions rather than separate transfers to avoid racing between the ioctl and thread-side interfaces. 2013-01-26 16:16:19 -08:00
px4dev fd28217e59 Implement the retry counter for message-vector based transfers. 2013-01-26 16:15:23 -08:00
px4dev 6bd662cfb2 In the case of a repeated start, we won't get a STOPF/AF status, but we still need to complete the old transaction before handling ADDR. 2013-01-26 16:11:31 -08:00
px4dev e0f83af96f Reset the collection state machine on all I2C errors, increase the retry count. 2013-01-26 15:13:30 -08:00
px4dev 2a18d6466c Add a bus saturation test for px4io. 2013-01-26 14:36:31 -08:00
px4dev 6ba4cd04fe Handle the completion of an in-progress transaction (STOPF/AF bits) before accepting the start of a new transaction (ADDR). 2013-01-26 14:26:02 -08:00
px4dev 11796e27f2 Simplify and tidy the handling of page buffer selection on the readout path. 2013-01-26 14:25:22 -08:00
px4dev 4ab490bd50 Only update the servo output values when we are armed. 2013-01-26 13:16:24 -08:00
px4dev 4ea8a64b39 Correct the length calculation for register write transfers so that we send all of the requested registers. 2013-01-26 13:15:57 -08:00
px4dev 72fcc8aad3 Tidy up the write path. 2013-01-26 13:15:27 -08:00
px4dev 899fbcc7cf Fix cut and paste so that we send direct PWM and read back servo values from the right pages. 2013-01-26 13:14:52 -08:00
px4dev 3a8bbe837e Allow readback of the direct PWM outputs (this mirrors the PWM servo outputs) 2013-01-26 13:14:15 -08:00
px4dev 984e68d76e Add an ioctl for fetching the number of PWM outputs 2013-01-26 12:27:42 -08:00
px4dev b20c050402 Fix two protocol-related typos; get the right status flag name for raw PWM; read back the correct page for PWM output. 2013-01-26 12:27:03 -08:00
px4dev 328af90c9e Merge pull request #179 from PX4/airspeed
Implemented airspeed measurement.
2013-01-26 11:10:11 -08:00
px4dev 4732f1e758 Merge pull request #188 from PX4/param_command
Improved param command, show now allows to filter and set allows to set int params
2013-01-26 11:09:06 -08:00
px4dev f854e2f791 Fixes from/inspired by Tridge; enable all mapped R/C inputs, fix various logic errors, be more selective about clearing the RC input type flags for debugging purposes. 2013-01-26 00:02:45 -08:00
px4dev 5fe376c7b9 Correctness fixes from Tridge.; increased the minimum poll rate to 50Hz, don't set the input RC timestamp unless we get data. 2013-01-26 00:01:25 -08:00
px4dev b46d05835b Implement settable failsafe values for PWM outputs.
By default in failsafe mode, PWM output pulses are not generated.
2013-01-25 22:58:33 -08:00
px4dev 900b0d58ef Less debug output. 2013-01-25 21:59:31 -08:00
px4dev 6c75c5909e Move the DMA start to immediately after setting it up; less latency at interrupt time, and no chance of getting start/stop calls out of sync. 2013-01-25 21:58:55 -08:00
px4dev 818e898a7e Fix the handling of max transfer size to leave room for the page/offset bytes. 2013-01-25 21:54:04 -08:00
px4dev 1b30cd2f93 Dump a couple of unused member variables. 2013-01-25 21:40:18 -08:00
Andrew Tridgell 8972843b14 px4io: fixed mixer load 2013-01-25 21:37:48 -08:00
Andrew Tridgell f8bea6d07b px4io: fixed cpp error 2013-01-25 21:36:19 -08:00
Andrew Tridgell 57d028fddd px4io: fixed array reference bug 2013-01-25 21:35:58 -08:00
px4dev 82f72b96de Move DMA start for tx/rx into the gap where SCL is still stretched so that there is no risk of receiving the first byte before DMA starts. 2013-01-25 21:35:32 -08:00
px4dev 24f6c6b121 Merge branch 'master' into px4io-i2c 2013-01-25 19:29:29 -08:00
Lorenz Meier 81601ad9dc Fixed byte readout order and signed value 16 to 14 bit value conversion 2013-01-26 01:04:58 +01:00
Simon Wilks 0246842c88 Enable single wire via ioctl calls and pull the battery voltage from the battery status topic. 2013-01-25 01:41:11 +01:00
patacongo b6472b58dc Fix some compilation errors when child status disabled; new waitpid logic not encoding/decoding status properly
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5561 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 00:01:08 +00:00
patacongo a2ec48846f Fix some missing logic and inconsistencies in child status logic; Fix a bug introduced into sigaction()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5560 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 23:18:32 +00:00
Simon Wilks 23f0be6b02 Merge branch 'ioctl' into hott 2013-01-24 23:57:54 +01:00
Simon Wilks 0669d2aee0 Merge remote-tracking branch 'upstream/master' into hott 2013-01-24 23:27:27 +01:00
Simon Wilks b9009390d7 Merged and tested against the single wire implementation added to Nuttx r5554. 2013-01-24 23:26:12 +01:00
Lorenz Meier 4baa1821cb Merge branch 'master' of github.com:PX4/Firmware into airspeed 2013-01-24 21:41:50 +01:00
patacongo 888306f728 Add psock_poll(); Fix some warnings reported by Lorenz Meier; lm4f logic from JP
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5557 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 18:39:53 +00:00
patacongo f914a90556 apps/examples/nettest and poll: Complete Kconfig files
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5556 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 16:28:15 +00:00
Lorenz Meier f21d406cbe Added additional example 2013-01-24 16:53:31 +01:00
Lorenz Meier 6d12f147b8 Improved param command, show now allows to filter and set allows to set integer params (e.g. param set MAV_TYPE 2) 2013-01-24 15:43:12 +01:00
px4dev 35febbe844 Merge Nuttx r5554 2013-01-23 23:56:24 -08:00
px4dev 942cea157d Merge pull request #182 from NosDE/master
BlnkM: Timing changed and amber color for manual mode added
2013-01-23 23:15:19 -08:00
px4dev 0bc836ae1d Implement fetching raw RC input values via the ioctl interface. 2013-01-23 22:19:33 -08:00
px4dev dce2afde0f Rework the way that we handle the address phase for reads. Drop the _connected test as we talk to IO before starting the thread. 2013-01-23 20:18:18 -08:00
px4dev dc88dd0abb Merge branch 'master' into px4io-i2c 2013-01-23 18:58:19 -08:00
px4dev d8a013f872 Tinkering. 2013-01-23 18:57:16 -08:00
px4dev b34311915a Safeguard against back-to-back transactions while setting up to handle a register read request. 2013-01-23 18:56:58 -08:00
px4dev 3244bb83ea Better sanity checking and error handling. 2013-01-23 18:56:03 -08:00
px4dev 1ce1d4460b Merge pull request #183 from PX4/nuttx-merge-5527
Nuttx merge 5527
2013-01-23 18:46:12 -08:00
Andrew Tridgell 6e751d26e8 perf: added 'perf reset' command
resets all perf counters
2013-01-24 10:26:02 +11:00
Andrew Tridgell f4da4bb8ca perf_counter: added perf_reset() and perf_reset_all() calls
useful for watching counters after system reaches stable flight
2013-01-24 10:26:02 +11:00
patacongo 63f8c0a954 Add option to used keyboard CODEC in apps/examples/keypadtest
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5554 42af7a65-404d-4744-a932-0658087f49c3
2013-01-23 23:11:13 +00:00
Lorenz Meier e6bc395291 Merge branch 'master' of github.com:PX4/Firmware into attitude_filter_improvement 2013-01-23 18:24:19 +01:00
Lorenz Meier 0e01f2b6fb Removed unused files 2013-01-23 18:23:55 +01:00
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