Commit Graph

1752 Commits

Author SHA1 Message Date
Lorenz Meier 7e4d6133ae Make communication rate between IO and FMU configurable 2013-03-15 19:19:52 +01:00
Lorenz Meier 688ec090e8 Moved trim for fixed wing to standard trim values, can now be calibrated via RC 2013-03-14 22:43:45 +01:00
px4dev 7011fe563b Move PWM rate configuration, etc. into a separate utility and out of the individual drivers. 2013-03-12 22:22:50 -07:00
px4dev 57429fd12c Convert HIL and FMU drivers to the new multirate PWM interface. 2013-03-12 22:22:49 -07:00
px4dev 6cf0758b24 Changes for multi-rate PWM output; default and alternate rates. ioctl protocol, PX4IO support. 2013-03-12 22:22:49 -07:00
Lorenz Meier 6b947a67d0 Merge branch 'master' of github.com:PX4/Firmware 2013-03-11 21:46:26 +01:00
Lorenz Meier 424923271e Hotfix: Throttle scaling in HIL 2013-03-11 21:46:16 +01:00
px4dev de078b4525 Move the bson sample data out of the BSS, saves 256 bytes of RAM 2013-03-10 14:59:38 -07:00
Lorenz Meier 9a1a3ddaa1 Moved filter states to stack RAM space 2013-03-10 22:21:39 +01:00
px4dev f81d514dbd Const a small array. 2013-03-10 14:13:33 -07:00
px4dev cac392140f const the listener array, saves a little RAM. 2013-03-10 14:13:13 -07:00
Lorenz Meier 1d444f80a3 Fixed comment 2013-03-10 22:01:13 +01:00
px4dev 157b54ab4a Script name pointer array can be const. Fix a couple of lint errors while I'm here. 2013-03-10 13:46:55 -07:00
px4dev 4bc2ea744e more constness 2013-03-10 12:56:52 -07:00
px4dev 18d9956876 One more tune. Might be a bit big to keep. 2013-03-10 12:36:59 -07:00
px4dev 32e67883e8 Add one more tune. Improve error handling. Be less picky about tunes passed on the command-line. 2013-03-10 12:14:09 -07:00
px4dev 02fc6812d4 Add support for arbitrary user tunes on the commandline. 2013-03-10 00:29:19 -08:00
px4dev 0d9d009961 New tone_alarm driver, now features GWBasic PLAY / ANSI music string format 2013-03-10 00:05:16 -08:00
Lorenz Meier c720a32380 Hotfix: Correct channel order in HIL 2013-03-10 01:00:16 +01:00
Lorenz Meier 921ef9178d Hotfix: Correctly publish servo outputs 2013-03-10 00:16:55 +01:00
Simon Wilks a8a74fda96 Invert aileron actuator for correct aileron response in auto 2013-03-09 22:11:31 +01:00
Lorenz Meier 802d0ae2fa Made dtors virtual, tested on IO and FMU 2013-03-09 21:07:29 +01:00
Lorenz Meier 5baea153e7 Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-03-09 13:22:32 +01:00
Lorenz Meier e7df439ea1 Hotfix: Extend GPS lost timeout by a small delta to prevent timeout aliasing, GPS app does not report any more losses 2013-03-09 13:21:57 +01:00
Lorenz Meier 74bcf29c69 Refactored debug level into proper register, px4io status now correctly reads it. Added more of the missing alarms clear logic, alarms reporting now consistent. Adding missing sign change on mode switch, fixes override issue when attempting to switch to auto mode. Pending outdoor tests 2013-03-09 13:20:05 +01:00
Lorenz Meier 5335de4cc7 Merge branch 'px4io-i2c' of github.com:PX4/Firmware into px4io-i2c 2013-03-09 12:55:12 +01:00
Thomas Gubler 4b26d7aef4 adding missing include 2013-03-09 12:28:30 +01:00
Lorenz Meier 11cb9df05b After the mb12xx driver was merged way too early, make the best out of it and fix up the init phase to the driver bails out if there is no sensor connected 2013-03-09 11:20:06 +01:00
Lorenz Meier c9775d7455 Merge branch 'px4io-i2c' of github.com:PX4/Firmware into px4io-i2c 2013-03-09 11:03:38 +01:00
Lorenz Meier cc628fbc27 Add missing mixer ok check in override mode, clear FMU lost alarm when setting FMU_OK flag, print AP RX timeout in production mode as well 2013-03-09 11:03:06 +01:00
Lorenz Meier 7c8942f46c Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c 2013-03-09 10:47:37 +01:00
Lorenz Meier 35790e673b Merge pull request #214 from ghulands/sonar
Maxbotix I2C Sonar Support
2013-03-08 13:17:57 -08:00
Lorenz Meier e8e52afcc4 Added minimum set of IO MAVLink text messages, report critical errors such as in-air restarts 2013-03-07 20:51:33 +01:00
Lorenz Meier ebac51cad8 Working on restart resilience, hunting down multi-load mixer issue (still present) 2013-03-07 19:47:43 +01:00
Lorenz Meier a493824850 Fixed wrong comment 2013-03-07 18:06:20 +01:00
Lorenz Meier ff5ca82c75 Fixed throttle scaling issue, harmonized FMU and IO RC scaling code 2013-03-07 11:45:23 +01:00
Lorenz Meier c993ba5bbc Fixed minor scaling issue, throttle range still half 2013-03-07 10:27:55 +01:00
Lorenz Meier 5ab8ea9226 Merge branch 'px4io-i2c-throttle' of github.com:PX4/Firmware into px4io-i2c-throttle 2013-03-07 09:53:37 +01:00
Lorenz Meier 4050a05de7 Merge branch 'px4io-i2c-throttle' of https://github.com/sjwilks/Firmware into px4io-i2c-throttle 2013-03-07 09:49:45 +01:00
Lorenz Meier 4797c192be Fixed RC calibration scaling / assignment 2013-03-07 09:49:12 +01:00
Simon Wilks 1c793848e0 Merge remote-tracking branch 'origin/px4io-i2c-throttle' into px4io-i2c-throttle 2013-03-07 01:48:41 +01:00
Simon Wilks 8f5dac3740 Let's just init the status flag every time we send a config update 2013-03-07 01:47:02 +01:00
Simon Wilks 8d1f80a9e8 Fix how we check for rc config init status 2013-03-07 01:03:38 +01:00
Simon Wilks 5c12b6a911 Request result of rc config upload from IO 2013-03-06 22:52:19 +01:00
Lorenz Meier 84f9599cb3 Merge branch 'px4io-i2c' of github.com:PX4/Firmware into px4io-i2c-throttle 2013-03-06 22:36:53 +01:00
Simon Wilks ae98836db8 Correct RC config sanity checking and report back when RC config errors occur. 2013-03-06 20:37:01 +01:00
px4dev b526bab174 Remove extra spaces from mixers before processing them. This gives us some more working space on IO for mixer processing. 2013-03-04 21:46:55 -08:00
Thomas Gubler c149361f15 scale the saved adc values to get voltage 2013-03-04 14:21:49 +01:00
Thomas Gubler e27481826c write adc values to sensors combined and log them 2013-03-03 23:56:11 +01:00
Greg Hulands 160ac722be Fix white space 2013-03-01 10:16:04 -08:00
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