Commit Graph

1678 Commits

Author SHA1 Message Date
Lorenz Meier 3d3a68a7fb Removed confusing non-error message, updated start scripts to match wiki and most recent SW revs 2013-02-17 18:11:33 +01:00
Lorenz Meier 56bf9855a8 Finished and tested in-air restore of arming state, as long as both boards reset at the same time armings state is now retained 2013-02-17 17:47:26 +01:00
Lorenz Meier 5085a28240 Merge branch 'px4io-i2c' into px4io-i2c-nuttx 2013-02-17 16:38:42 +01:00
Lorenz Meier f689f0abb0 Fixed excessive debug buffer size 2013-02-17 16:38:19 +01:00
Lorenz Meier d677512981 Merge branch 'px4io-i2c' of github.com:PX4/Firmware into px4io-i2c-nuttx 2013-02-17 16:33:59 +01:00
Lorenz Meier 038037d676 Allow to in-air restore the FMU and IO arming state if only one of the two fails 2013-02-17 16:06:33 +01:00
Lorenz Meier 8f8e30052b Merged 2013-02-17 15:29:31 +01:00
Lorenz Meier 0ffcb1b401 Merge branch 'master' into px4io-i2c 2013-02-17 13:08:21 +01:00
Lorenz Meier 9fb024b1f2 Removed old GPS app 2013-02-17 13:07:40 +01:00
Andrew Tridgell 04bea8678e Merged debuglevel command from Tridge 2013-02-17 13:03:36 +01:00
Andrew Tridgell a33f314a25 More output 2013-02-17 12:53:12 +01:00
Lorenz Meier 598622a00f Slightly adjusted battery voltage measurement after calibration against B&K Precision lab supply with beefy wiring. Needs more cross-validation. 2013-02-16 18:16:29 +01:00
Lorenz Meier 63d95f672e Merge branch 'master' into px4io-i2c 2013-02-16 18:01:34 +01:00
Lorenz Meier 1c98343e7b Merge branch 'master' of github.com:PX4/Firmware 2013-02-16 18:01:15 +01:00
Lorenz Meier a0780a20b5 Fixed default airspeed for fixed wing control app 2013-02-16 18:00:58 +01:00
Lorenz Meier 400b073aa3 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-16 16:46:57 +01:00
Lorenz Meier 781845587c Merge pull request #195 from PX4/gps
GPS driver rewrite
2013-02-15 13:46:03 -08:00
Lorenz Meier 5b8ad11498 Merge pull request #192 from PX4/tests
Fixed test outputs, decoupled tests from NuttX low-level output
2013-02-15 13:45:33 -08:00
Lorenz Meier 5e8efbf2e9 Merge pull request #201 from PX4/fixedwing_ned_outputs
Turned all control outputs into NED frame moments
2013-02-14 23:42:25 -08:00
Lorenz Meier 2e73421fa0 Merge pull request #178 from PX4/attitude_filter_improvement
Better attitude filter, not sensitive to sudden accelerations
2013-02-14 23:36:43 -08:00
Julian Oes ae51810a81 Changed names and default values of attitude estimator parameters 2013-02-14 20:17:18 -08:00
Andrew Tridgell 6eb69b07a8 Merged debug level commits from Tridge 2013-02-14 23:06:52 +01:00
Andrew Tridgell bfecfbf5ee px4io: added isr_debug()
this is useful for debugging px4io internals
2013-02-14 19:30:15 +01:00
Lorenz Meier dd858f7056 Merge pull request #197 from PX4/mpu6000_fixes
MPU6000 driver improvements
2013-02-13 06:31:42 -08:00
Lorenz Meier d129eff5b9 Turned all control outputs into NED frame moments, this is validated in real flight with a correct mixer setup. 2013-02-13 12:49:33 +01:00
Lorenz Meier 4595cc65b8 Reworked manual override flag, reworked arming slightly. Pending testing 2013-02-13 08:38:31 +01:00
Lorenz Meier d4ca6a29a1 Ensured that the mixer output obeys the FMU and IO armed state 2013-02-12 22:19:53 +01:00
Lorenz Meier b750a588a0 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-12 09:34:41 +01:00
Lorenz Meier 163257f3bd Fixed scaling of RC calibration in IO driver, fixed interpretation of (odd, but APM-compatible) channel reverse flag 2013-02-12 09:33:52 +01:00
Lorenz Meier 01ada7f74f Fixed mixer transmission between FMU and IO 2013-02-12 09:31:43 +01:00
Lorenz Meier 857fe5d405 Fixes to RC config transmission from Simon Wilks 2013-02-12 09:20:11 +01:00
Lorenz Meier ef301890ba Merge branch 'px4io-i2c' of github.com:PX4/Firmware into px4io-i2c 2013-02-12 09:13:51 +01:00
px4dev aa16a63a10 Fix assignment of relay GPIOs. 2013-02-11 20:40:06 -08:00
Julian Oes 6fe5291147 Merge remote-tracking branch 'upstream/master' into attitude_filter_improvement 2013-02-11 16:54:36 -08:00
px4dev 3c8da27d72 Fix a misleading comment. 2013-02-09 00:57:23 -08:00
px4dev a645a388bc Fix a sign error 2013-02-09 00:53:51 -08:00
Julian Oes df6cf142e7 Another rewrite: most of the polling, reading and writing is now inside the GPS classes 2013-02-08 11:05:57 -08:00
Andrew Tridgell 1fed72caf8 mpu6000: support setting the DLPF filter frequency
APM uses this for different aircraft types
2013-02-08 16:21:00 +01:00
Andrew Tridgell 508d6d2b4f drivers/mpu6000: add default product ID case 2013-02-08 16:20:29 +01:00
Julian Oes a88b9f4eef Restructered the parsing/configuring, MTK working 2013-02-07 14:48:00 -08:00
px4dev 8cb583cf80 Assorted compile fixes. 2013-02-06 23:50:55 -08:00
px4dev 5f52d3dc7f lib_lowprintf -> lowsyslog 2013-02-06 23:31:51 -08:00
Julian Oes d36eb8a3fc Sped up MTK configuration but the detection time can still be improved: timeouts/usleeps 2013-02-06 23:25:09 -08:00
Julian Oes b620136af4 Added support for MTK revision 19, working condition but configuration of MTK is very slow and needs improvement 2013-02-06 22:58:52 -08:00
Lorenz Meier 4b2e8556b8 Merge branch 'px4io-i2c' of github.com:PX4/Firmware into px4io-i2c 2013-02-07 07:06:42 +01:00
px4dev d573cca61b Merge commit '049c93446561c6ad3e59183c139f3916230ddee5' into nuttx-merge-5596
This merges NuttX 6.25 with one post-release bugfix.
2013-02-06 21:38:33 -08:00
Julian Oes 0d54661ce9 Added MTK 1.6, works after some seconds, work in progress 2013-02-06 20:04:49 -08:00
Julian Oes 6ed5d97aea Merged mtk16 and mtk19 helper classes, configure() now writes directly instead of buffering 2013-02-06 18:47:32 -08:00
Julian Oes d962e6c403 Removed some unnecessairy flags, home position back working 2013-02-06 13:50:32 -08:00
Julian Oes fc4be3e728 Changed gps position topic mostly to SI units and float, removed counters and added specifig timestamps 2013-02-06 12:41:05 -08:00
Julian Oes a79ad17f09 Changed parse interface, differentiation between config needed and position updated, working but might be solved more elegant 2013-02-05 23:16:32 -08:00
Lorenz Meier fbbeef7e29 Update on every position change, do not wait for other measurements 2013-02-05 18:54:06 +01:00
Andrew Tridgell 804f0e4219 px4io: make uploader more reliable
avoid seeks, lower verify recv size and removed cruft
2013-02-05 18:30:31 +01:00
Lorenz Meier 167ec25c4f Fixed altitude jump issue, hunted down and fix by Andrew Tridgell. 2013-02-05 18:28:41 +01:00
Lorenz Meier a196e73842 Fixed arm ok flag typo 2013-02-05 18:11:59 +01:00
Lorenz Meier 368ba0056f Added option to select port name, minor tweaks to status printing, sacrificied 20 bytes for better status / user debuggability 2013-02-05 13:47:31 +01:00
Julian Oes 53c11f87cb Small corrections 2013-02-04 17:57:30 -08:00
Julian Oes 039d394c20 Merged with newer, cleaned up code, fixed the checksum error 2013-02-04 16:27:01 -08:00
Lorenz Meier cb0fd834ae Minor polishing, fixed rate and last measurement indication 2013-02-04 18:14:55 +01:00
Lorenz Meier d4bd7225ba More cleanup 2013-02-04 18:00:10 +01:00
Lorenz Meier 13ec067570 Minor quick cleanups 2013-02-04 17:55:58 +01:00
Lorenz Meier 30f028908a Fixed typo 2013-02-04 16:15:48 +01:00
Lorenz Meier 12f4cb2dc3 Tuned GPS update rates 2013-02-04 16:13:17 +01:00
Lorenz Meier 3fd8c73bfb Disabled old-style gps interface, enabled GPS driver 2013-02-04 15:58:53 +01:00
Lorenz Meier 50b736333f Reduced, but functional u-blox series driver 2013-02-04 15:57:12 +01:00
Lorenz Meier 0a7daf3cfd Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-03 20:55:00 +01:00
px4dev 3e5cd26777 Merge pull request #194 from NosDE/master
Options for Bus and BlinkM address added
2013-02-02 09:23:25 -08:00
Marco Bauer 167cc4a197 Option for Bus and BlinkM address added 2013-02-02 17:36:43 +01:00
patacongo 85417c1a51 Prep for 6.25 release
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5594 42af7a65-404d-4744-a932-0658087f49c3
2013-02-01 22:37:52 +00:00
Lorenz Meier 7ccc57f3c0 Fixed test outputs, decoupled tests from NuttX low-level output via message() macro 2013-02-01 13:02:20 +01:00
Marco Bauer 10361d997a Options for bus and blinkmaddress added. 2013-02-01 11:42:45 +01:00
patacongo 966e801032 Misc clean; mark assertions as non-returning; allow toolchain prefix to be overriden from make command line
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5591 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 23:29:34 +00:00
patacongo 9de6f4d501 Fix readline return value; Add support for removable serial devices
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5589 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 16:52:20 +00:00
Lorenz Meier e137d00424 HOTFIX: Fixed HoTT compile error, fixed MAVLink crash 2013-01-31 17:31:58 +01:00
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