Commit Graph
148 Commits
Author SHA1 Message Date
px4dev b11e05d614 Don't build interface drivers we don't have config for. 2013-07-14 12:40:26 -07:00
px4dev f8f6a43fea Use common, board-type-agnostic code to allocate the PX4IO interface. 2013-07-14 11:50:35 -07:00
px4dev 5350c2be09 Refactor MS5611 driver to use interface nubs for the I2C and SPI versions of the chip. This reduces the amount of duplicated code. 2013-07-14 11:45:21 -07:00
px4dev 6c7f1e883e Direct-access device functions return errors directly.
Move to using ::init rather than ::probe in keeping with device changes.
2013-07-14 11:44:46 -07:00
px4dev 12b84597d8 Direct access functions return errors directly, not touching errno. 2013-07-14 11:43:43 -07:00
px4dev 7c83e928a5 destructors for I2C and SPI should be virtual. 2013-07-14 11:42:56 -07:00
px4dev 28f996b026 rename the px4io serial perf counters so it's clearer what they belong to 2013-07-13 21:34:31 -07:00
px4dev 4f0ae1cdea Build the px4io interfaces on top of the Device direct-access API. 2013-07-13 21:00:27 -07:00
px4dev 26eb0b9d72 Move the direct-access methods from CDev to Device… makes more sense that way. 2013-07-13 21:00:03 -07:00
px4dev e67f6a51a3 Make px4io driver filenames less ambiguous. 2013-07-13 20:13:53 -07:00
px4dev c459901f26 Let's have some direct-access I/O methods as well. 2013-07-11 23:52:36 -07:00
px4dev 16cb0a793d Some more v2 pin / gpio configs missed in the previous commit 2013-07-11 23:23:10 -07:00
px4dev f5b91e109d More GPIO and general pin assignment fixes. 2013-07-10 23:50:37 -07:00
Lorenz Meier f27491d2e5 Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup 2013-07-10 11:58:48 +02:00
Lorenz Meier 71ca3ec449 Merged GPS info fixes from pigeonhunter 2013-07-09 23:16:53 +02:00
Lorenz Meier c3d07030dd Minor additions to fix, pushing 2013-07-09 22:56:02 +02:00
Lorenz Meier 6cbbb9b99f Hotfix for GPS driver 2013-07-09 22:46:24 +02:00
Lorenz Meier e3bb9e87e2 Hotfix for GPS: Disable unknown message classes 2013-07-09 17:36:48 +02:00
Lorenz Meier d63730419b Merge branch 'mpu6000_set_sample_rate' of https://github.com/fibr/Firmware into mpu_rate 2013-07-09 11:16:42 +02:00
Darryl Taylor dc2ef7b3c6 Some cleanup of NAV_SVINFO message handler 2013-07-09 17:07:11 +08:00
Darryl Taylor 6dff71668d Merge branch 'master' into gps_fix 2013-07-09 14:49:58 +08:00
Darryl Taylor d878d4756c Ammended UBlox driver to record SV Info, satelites_visible == satelites used. Info is recorded for all SVs, used or not. Might be useful for GPS debugging. 2013-07-09 14:25:47 +08:00
Lorenz Meier ced2871263 Merged mkblctrl 2013-07-08 20:48:30 +02:00
px4dev 0efb1d6ceb Fix the px4io serial port device name now that we're not using UART8 as the console. 2013-07-07 18:50:04 -07:00
px4dev b4029dd824 Pull v2 pieces up to build with the merge 2013-07-07 17:53:55 -07:00
px4dev 43f1843cc7 Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup 2013-07-07 12:22:56 -07:00
Lorenz Meier cf2dbdf9a1 Merge pull request #320 from PX4/integration
NuttX integration merge
2013-07-07 10:59:43 -07:00
px4dev 8fa226c909 Tweak protocol register assignments and add new registers to accommodate differences in IOv2. 2013-07-06 23:59:35 -07:00
Simon Wilks 01255a4cec Remove the <15kmh cuttoff and report kmh via HoTT. 2013-07-07 01:10:47 +02:00
px4dev a65a1237f0 Optimise the RC input fetch for <= 9ch transmitters; this eliminates one read per cycle from IO in the common case. 2013-07-06 12:29:14 -07:00
px4dev 17f9c7d15c Crank up the test speed for 'px4io iftest 1' 2013-07-06 12:28:01 -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 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