Commit Graph

1752 Commits

Author SHA1 Message Date
Greg Hulands d1e41f2c48 Missed the accel reference here 2013-03-01 10:14:11 -08:00
Greg Hulands 349af372d0 Changes from pull request feedback 2013-03-01 10:03:40 -08:00
Greg Hulands 6eca4ba462 Maxbotix I2C Sonar Support 2013-03-01 09:20:00 -08:00
Lorenz Meier 72a8ba074e Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-03-01 16:07:11 +01:00
Lorenz Meier 433c954858 Hotfix: Fix program flow for uORB non-published topics 2013-03-01 16:06:52 +01:00
Lorenz Meier b7a510dfcb Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-03-01 09:43:40 +01:00
Lorenz Meier eb9930de25 Merge branch 'master' of github.com:PX4/Firmware 2013-03-01 09:42:51 +01:00
Lorenz Meier 81594c1abc Hotfix: return correct value for orb_check() for never-published topics 2013-03-01 09:42:39 +01:00
Lorenz Meier a35d214d98 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-26 21:30:05 +01:00
Lorenz Meier dee0a30e16 Hotfix: ensure PWM output on IO and FMU stops when disarming 2013-02-26 21:27:33 +01:00
Lorenz Meier c848fd1d63 Merged master 2013-02-26 21:17:48 +01:00
Lorenz Meier a9b933b7e6 Merge pull request #206 from thomasgubler/airspeed
airspeed calculation
2013-02-26 12:16:16 -08:00
Lorenz Meier dffe05d893 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-26 21:15:36 +01:00
Thomas Gubler 8e3b09bd50 small printf change 2013-02-26 13:38:48 +01:00
Thomas Gubler de77cba538 small cleanup 2013-02-26 11:18:13 +01:00
Thomas Gubler 6f1d7dc7de commander app sets an airspeed_valid flag in the vehicle status 2013-02-25 15:48:16 +01:00
Thomas Gubler 3f674ba78c fixed a typo 2013-02-25 14:34:53 +01:00
Lorenz Meier 231a721ed4 Hotfix: Removed spurious break 2013-02-25 12:33:33 +01:00
Lorenz Meier ca794265c6 Fixed input indexing, stupid 1-based indices on the GCS side (MP/QGC) caused confusion 2013-02-25 09:07:13 +01:00
Lorenz Meier 2284e668eb Removed bound checking assertions 2013-02-25 08:53:00 +01:00
Lorenz Meier 5cc1e30e4f Corrected assertion range 2013-02-25 08:31:43 +01:00
Lorenz Meier 2ad41b8373 Merge branch 'px4io-i2c-memory-squeeze' of github.com:PX4/Firmware into px4io-i2c-memory-squeeze 2013-02-25 07:55:07 +01:00
px4dev e622835555 Bump the task stack up to 1200 bytes to give the mixer loader some headroom. This addresses the last reported issue with this branch. 2013-02-24 16:20:04 -08:00
px4dev 6ac7e8b7e4 Scale R/C inputs around the preset center, not the nominal center. 2013-02-24 15:56:02 -08:00
px4dev 345b1a0915 Print mapped R/C inputs as signed values (since they are zero-relative) 2013-02-24 15:55:38 -08:00
px4dev 3d9901dfaf If we have seen control input from FMU, update the FMU_OK status flag. 2013-02-24 15:31:40 -08:00
px4dev dc74eeb421 Report the control values from the FMU in the status output. Count them separately from the actuators. 2013-02-24 15:31:01 -08:00
px4dev f35c5d600a Don't mask out the enable bit when accepting R/C input config updates. 2013-02-24 14:32:04 -08:00
Lorenz Meier b922870fd3 Merge branch 'px4io-i2c-memory-squeeze' of github.com:PX4/Firmware into px4io-i2c-memory-squeeze 2013-02-24 23:31:06 +01:00
px4dev 93f6edfe64 Fix reporting of R/C input config 2013-02-24 14:30:56 -08:00
px4dev 776cf6093c && -> & 2013-02-24 14:06:28 -08:00
Lorenz Meier 1d0431e850 Merge branch 'px4io-i2c-memory-squeeze' of github.com:PX4/Firmware into px4io-i2c-memory-squeeze 2013-02-24 23:05:08 +01:00
px4dev e818bcbfc2 Fix a wrong register read for the mapped channel mask 2013-02-24 13:58:52 -08:00
Lorenz Meier 6dd1cfd622 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c-memory-squeeze 2013-02-24 22:58:46 +01:00
px4dev 858460c863 Extended PX4IO status dump 2013-02-24 13:40:46 -08:00
Thomas Gubler c0a852dab4 airspeed (pitot) offset calibration 2013-02-24 21:57:38 +01:00
Lorenz Meier 72603207a1 Fixed formatting of status printing 2013-02-24 21:12:25 +01:00
px4dev 3d53b1d551 Fix it here, too. 2013-02-24 11:50:57 -08:00
px4dev ccbd5a6372 No, really fix it this time. 2013-02-24 11:48:52 -08:00
px4dev 186d329722 Fix search-and-replace error. 2013-02-24 11:47:56 -08:00
px4dev 8c7c6b201c Merge branch 'px4io-i2c-memory-squeeze' of https://github.com/PX4/Firmware into px4io-i2c-memory-squeeze 2013-02-24 11:43:09 -08:00
px4dev f245d6b1a7 Use hrt_elapsed_time() in cases where we can't be sure the timestamp won't change under us. 2013-02-24 11:42:34 -08:00
px4dev 923a7cc505 Add an interrupt-safe way of comparing a timestamp with the current time.
Add an interrupt-safe way of storing the current time into a timestamp.
2013-02-24 11:41:26 -08:00
Lorenz Meier 35369471db working on better status reporting, removed unneeded fake PWM generation from FMU 2013-02-24 20:24:21 +01:00
Lorenz Meier bde6204b33 Merge branch 'px4io-i2c-memory-squeeze' of github.com:PX4/Firmware into px4io-i2c-memory-squeeze 2013-02-24 20:14:17 +01:00
Lorenz Meier 8740349545 Removed 1 Hz output 2013-02-24 20:13:45 +01:00
px4dev a11a71ec9c Hotfix: discard NUL characters in readline, rather than faking EOF on the console. 2013-02-24 11:00:16 -08:00
px4dev 641bfd88b6 Hotfix: discard NUL characters in readline, rather than faking EOF on the console. 2013-02-24 10:54:22 -08:00
Thomas Gubler 2707d2c1dd more fixes for the airspeed readout 2013-02-24 16:01:08 +01:00
px4dev 8c7e2546ed Simplify the PX4IO main loop to cut down on memory consumption. 2013-02-24 00:09:37 -08:00
px4dev 4ed7e92689 Kill off a couple of files that should never have been checked in. 2013-02-23 22:20:30 -08:00
px4dev 2ebcd0fdcc Switch to optimising some things for size rather than speed. 2013-02-23 22:00:58 -08:00
px4dev 085d08ce6c It seems to be safe to build these for any config. 2013-02-23 22:00:58 -08:00
Lorenz Meier 0561fab4e3 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-23 12:02:13 +01:00
Lorenz Meier a704acc2a2 Out of memory warning, flash and RAM optimizations 2013-02-23 12:02:00 +01:00
px4dev 8e66268c35 Hotfix: Add support for 9-channel Spektrum/DSM setups.
Tested by Felipe Reis <felipereis87@gmail.com>
2013-02-22 19:13:04 -08:00
Thomas Gubler 2c2c65d446 corrected some wrong units (used in airspeed calculation) 2013-02-22 22:53:38 +01:00
Lorenz Meier c3aad047a5 Merge pull request #203 from PX4/debug_example
Added additional debug / uORB example
2013-02-20 22:47:36 -08:00
Lorenz Meier be40845177 Switched to debug statement which is more efficient regarding stack usage, only printing at debug level 2 or higher. 2013-02-20 12:19:03 +01:00
Lorenz Meier 16b0fa7fd4 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-02-20 09:47:14 +01:00
Lorenz Meier 69d9265bc3 Adjusted stack size for commander app 2013-02-20 09:44:15 +01:00
Andrew Tridgell e896944adc ms5611: try to measure the performance cost of I2C timeouts 2013-02-19 14:45:45 +11:00
Andrew Tridgell 4a15eef602 px4io: fixed signals for lower latency PWM output
poll() is not interrupted by signals, whereas usleep() is
2013-02-19 12:31:51 +11:00
Lorenz Meier 663ca58063 Merge branch 'master' of github.com:PX4/Firmware 2013-02-18 16:46:05 +01:00
Lorenz Meier 104d5aa365 More sensible error handling in calibration 2013-02-18 16:45:59 +01:00
Andrew Tridgell 317515fb6a px4io: added INAIR_RESTART enable/disable flags
the autopilot code needs to know that in-air restart may happen, so it
should be something that is enabled, rather than on by default.
2013-02-18 14:16:09 +11:00
Andrew Tridgell 1670b8afe1 nshlib: added cmp command to nsh
this is useful for startup scripts testing for auto-upgrade of add-on 
board firmware
2013-02-18 10:19:38 +11:00
Andrew Tridgell b53d34a3f0 px4fmu: add support for write() interface for PWM output
this matches the PX4IO interface
2013-02-18 08:32:49 +11:00
Andrew Tridgell d6c108d870 px4fmu: added publication of input_rc ORB values
this allows for PPM input with no IO board
2013-02-18 08:32:25 +11:00
Andrew Tridgell 9f15f38e57 Merged, removed unneeded line 2013-02-17 18:29:18 +01:00
Lorenz Meier 520a2b4174 Merge pull request #198 from PX4/nuttx-merge-5596
Nuttx merge 5596
2013-02-17 09:14:12 -08:00
Lorenz Meier 219279ac82 Merge branch 'px4io-i2c' into px4io-i2c-nuttx 2013-02-17 18:13:09 +01:00
Lorenz Meier 985838d971 Merged master 2013-02-17 18:12:48 +01:00
Lorenz Meier 2745c3276f Merge branch 'master' of github.com:PX4/Firmware 2013-02-17 18:11:46 +01:00
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