Commit Graph

3611 Commits

Author SHA1 Message Date
px4dev 4d400aa7e7 Enable UART error handling on PX4IO. 2013-07-06 12:27:37 -07:00
px4dev 87a4f1507a Move the common definitions for the PX4IO serial protocol into the shared header. 2013-07-06 00:16:37 -07:00
px4dev 19b2e1de85 Copy the correct number of bytes back for register read operations. Basic PX4IO comms are working now. 2013-07-06 00:00:44 -07:00
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 6871d2909b Add a mechanism for cancelling begin/end perf counters. 2013-07-05 22:53:57 -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 bcfb713fe9 Enable handling for short-packet reception on IO using the line-idle interrupt from the UART. 2013-07-05 20:35:55 -07:00
px4dev f9a85ac7e6 Remove the TX completion callback on the IO side.
Report CRC, read and protocol errors.
2013-07-05 19:16:25 -07:00
px4dev 87c3d1a8c1 More link performance counters. 2013-07-05 19:03:08 -07:00
px4dev 10e673aa4b Send error response if register write fails. 2013-07-05 19:02:42 -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 1f7f7862ce Fix the USART6 default baudrate to match the IO bootloader. 2013-07-05 17:53:55 -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 83213c66df Reset the PX4IO rx DMA if we haven't seen any traffic in a while; this gets us back into sync. 2013-07-04 23:22:59 -07:00
px4dev 94b638d848 One more piece of paranoia when resetting DMA 2013-07-04 23:19:24 -07:00
px4dev 43210413a9 More test work on the px4io side of the serial interface. 2013-07-04 23:17: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 f7963a8c84 Fix printing of PC_COUNT perf counters 2013-07-04 23:14: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 ea1f61e093 USB console isn't working. Go back to UART8 which is. 2013-07-03 22:22:10 -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 7958e38c42 Enabled NSH on USB by default. 2013-06-25 13:44:42 -07:00
Lorenz Meier 758ebf6c04 Merge pull request #6 from skelly/l3gd20h_support
Added l3gd20h detection
2013-06-13 12:58:06 -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 42ce3112ad Merge pull request #299 from DrTon/sdlog2
sdlog2: RC (RC controls) and OUT0 (actuator 0 output) messages added
2013-06-09 02:48:06 -07:00
Anton Babushkin f8f83d5896 Merge branch 'master' into sdlog2 2013-06-08 18:16:33 +04:00
Anton Babushkin 079cb2cd65 sdlog2: RC (RC controls) and OUT0 (actuator 0 output) messages added, print statistics to mavlink console 2013-06-08 18:15:55 +04:00
Lorenz Meier 5a9e52a287 Merge branch 'master' of github.com:PX4/Firmware 2013-06-07 21:16:40 +02:00
Lorenz Meier 66879e6ff6 Hotfix: Make maxoptimization configurable from the shell via MAXOPTIMIZATION=-O0 V=1 make archives 2013-06-07 21:16:31 +02:00
Lorenz Meier 7a365e8af7 Merge pull request #297 from DrTon/sdlog2
sdlog2: new log messages added, ajustable log buffer
2013-06-07 12:04:58 -07:00
Anton Babushkin 7b98f0a567 sdlog2 minor fix 2013-06-07 22:12:21 +04:00
Anton Babushkin 59b26eca48 sdlog2 -b option (log buffer size) added, minor cleanup 2013-06-07 22:02:40 +04:00
Anton Babushkin d39999425d sdlog2 fixes 2013-06-07 21:32:58 +04:00
Lorenz Meier aa641b5c34 Hotfix: Renamed max NSH argument variable to correct define 2013-06-07 18:00:37 +02:00
Anton Babushkin 03357f89fd Merge branch 'master' into sdlog2 2013-06-07 19:29:14 +04:00