Commit Graph

100 Commits

Author SHA1 Message Date
px4dev 0589346ce6 Abort the px4io worker task if subscribing to the required ORB topics fails. 2013-07-06 00:00:10 -07:00
px4dev a4b0e3ecbe Add retry-on-error for non-protocol errors.
Add more performance counters; run test #1 faster.
2013-07-05 22:54:44 -07:00
px4dev 3c8c596ac7 Enable handling for short-packet reception on FMU using the line-idle interrupt from the UART. Enable short packets at both ends. 2013-07-05 20:37:05 -07:00
px4dev 87c3d1a8c1 More link performance counters. 2013-07-05 19:03:08 -07:00
px4dev 46a4a44321 Be more consistent with the packet format definition.
Free perf counters in ~PX4IO_serial
2013-07-05 18:36:00 -07:00
px4dev 6c5a15da9b Eliminate the TD DMA callback; we don't need to know that it's completed.
Fix abort behaviour on timeouts, now we don't wedge after the first one.
2013-07-05 17:39:28 -07:00
px4dev 50cae347b4 Check packet CRCs and count errors; don't reject packets yet. 2013-07-05 17:13:54 -07:00
px4dev 5a8f874166 Add an 8-bit CRC to each transmitted packet. 2013-07-05 16:56:47 -07:00
px4dev 313231566c Encode the packet type and result in the unused high bits of the word count. 2013-07-05 16:41:27 -07:00
px4dev e55a37697d Always send and expect a reply for every message. 2013-07-05 16:34:44 -07:00
px4dev d83323d4a2 Use the NuttX built-in crc32, it works fine. 2013-07-05 16:18:55 -07:00
px4dev 52096f017f Switch to the 'normal' way of doing register accessors.
Be more aggressive en/disabling DMA in the UART, since ST say you should.
2013-07-04 23:17:16 -07:00
px4dev c21237667b iov2 pin definition cleanup sweep 2013-07-04 23:16:13 -07:00
px4dev 2e001aad04 Add PX4IOv2 support to the uploader. 2013-07-04 12:50:59 -07:00
px4dev f2079ae7ff Add DMA error handling.
Add serial error handling.
Add short-packet-reception handling (this may allow us to send/receive shorter packets… needs testing).
2013-07-04 11:21:25 -07:00
px4dev 7255c02c20 Add a test hook for the PX4IO interface. Wire up some simple tests for the serial interface.
Signal quality looks good at 1.5Mbps. Transmit timing is ~450µs per packet, ~20µs packet-to-packet delay spinning in a loop transmitting.
2013-07-03 23:41:40 -07:00
px4dev 03a15bfdc5 Fix argument parsing in the rgbled command. 2013-07-03 22:23:01 -07:00
px4dev be6ad7af3b Rework the FMU<->IO connection to use a simple fixed-size DMA packet; this should let us reduce overall latency and bump the bitrate up.
Will still require some tuning.
2013-07-03 00:08:12 -07:00
Lorenz Meier 3eb115c821 Merge pull request #7 from skelly/l3gd20h_support
Enabled MS5611, nsh on USB by default.
2013-07-02 11:06:53 -07:00
px4dev d1562f926f More implementation for the serial side on IO; fix a couple of bugs on the FMU side.
Still needs serial init and some more testing/config on the FMU side, but closer to being ready to test.
2013-06-28 23:39:35 -07:00
px4dev 90c458cb61 Checkpoint: interface abstraction for px4io driver 2013-06-25 23:08:34 -07:00
Sam Kelly b1f3a5c92b Enabled MS5611 by default on FMUv2. 2013-06-25 14:01:27 -07:00
Sam Kelly 53f29a25b6 Added l3gd20h detection 2013-06-13 12:51:50 -07:00
Lorenz Meier 9444def5f8 Merge branch 'master' into fmuv2_bringup 2013-06-10 15:01:44 +02:00
Lorenz Meier 4e3f4b57e3 Hotfix: Allow the IO mixer loading to load larger mixers, fix up the px4io test command to allow a clean exit 2013-06-07 10:36:56 +02:00
Lorenz Meier bddcb11051 Merge pull request #296 from sjwilks/hott-init-fix
Fix HoTT syncing issue with receiver on startup.
2013-06-04 22:54:27 -07:00
Simon Wilks 032f7d0b0e Fix syncing issue with receiver on startup. 2013-06-04 23:24:30 +02:00
Lorenz Meier 45fe45fefa Better error handling for too large arguments 2013-06-04 13:32:57 +02:00
Lorenz Meier de8186e050 Merge branch 'master' of github.com:PX4/Firmware into failsafe_io 2013-06-04 13:25:42 +02:00
Lorenz Meier e3ee6689fe Merge pull request #294 from sjwilks/hott_v2
Add GPS Support to the HoTT Telemetry driver
2013-06-04 03:15:40 -07:00
Simon Wilks 9374e4b1f2 Formatting and comments 2013-06-04 00:52:48 +02:00
Simon Wilks 30d17cf0ba Fix whitespace 2013-06-04 00:18:23 +02:00
Simon Wilks f435025d26 Completed main implementation and debugging 2013-06-04 00:10:58 +02:00
Anton Babushkin 1addb9f6c5 Fixed bug in UBX::configure_message_rate() 2013-06-01 20:42:43 +04:00
Lorenz Meier 5f2571dd01 Set unknown channels to zero, since centering them is a slightly dangerous guess 2013-05-29 18:29:41 +02:00
Lorenz Meier f6570172da Set default failsafe value to 0 of mixer 2013-05-29 17:07:26 +02:00
Lorenz Meier d2c60a248d Merge branch 'master' of github.com:PX4/Firmware into failsafe_io 2013-05-28 17:49:06 +02:00
Lorenz Meier 2876bc72f9 Slightly reworked IO internal failsafe, added command to activate it (px4io failsafe), does not parse commandline arguments yet 2013-05-28 17:46:24 +02:00
Lorenz Meier 27ee36b204 Hotfix: Completely silencing HMC5883 probing to not confuse users 2013-05-28 07:18:07 +02:00
Lorenz Meier f1a8f6e75b Hotfix: Made HMC driver more verbose to prevent false alarm 2013-05-27 16:58:30 +02:00
marco 73d2baeb20 comments cleaned 2013-05-26 16:49:33 +02:00
marco 8e1571cf02 mkblctrl cleanup & tested 2013-05-24 20:16:47 +02:00
marco 9f090e651a mkblctrl cleanup 2013-05-23 21:03:49 +02:00
px4dev dca844a808 Based on comments in:
http://answers.px4.ethz.ch/question/1337/px4io-receiver-connection-problem/?answer=1346#post-id-1346

increase the longest PPM pulse we recognize out to 550µs.
2013-05-23 09:27:57 +02:00
Lorenz Meier 03eac33a3d Merge branch 'master' of github.com:cvg/Firmware_Private into fmuv2_bringup 2013-05-22 12:16:41 +02:00
Lorenz Meier 0165034e49 Hotfix: Changed alarms back to what they originally were designed for: Traps to later see if condition was once violated. Currente status can be read through the status flags 2013-05-21 09:14:22 +02:00
px4dev b7d430e3c0 Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
Fix px4iov2 build issue by selecting the correct NuttX config.
2013-05-19 21:51:35 +02:00
Lorenz Meier 58084685b2 Hotfix: Changed alarms back to what they originally were designed for: Traps to later see if condition was once violated. Currente status can be read through the status flags 2013-05-16 09:12:13 +02:00
Andrew Tridgell fa816d0fd6 arming: added PWM_SERVO_SET_ARM_OK and PWM_SERVO_CLEAR_ARM_OK
these new ioctls allow for the flight code to tell the IO board that
arming can proceed
2013-05-16 08:39:24 +02:00
Simon Wilks 6571629dca Merged new repository layout from PX4/Firmware 2013-05-15 20:11:13 +02:00