Lorenz Meier
52d15ac7b1
Merged public master
2013-08-16 16:22:38 +02:00
Jean Cyr
0b93555043
Tell mavlink about bind results
2013-08-11 21:16:55 -04:00
Jean Cyr
35ec651cee
Remove unused IOCTLs
2013-08-11 18:07:25 -04:00
Jean Cyr
1d408b80ad
Support DSM bind via QGroundControl
2013-08-11 17:19:54 -04:00
Lorenz Meier
083cc60acb
Increased logging to 200 Hz in F330 startup for v2, allowed to set up to 333 Hz update rate in IO driver for v2 link
2013-08-11 18:42:20 +02:00
Lorenz Meier
42b4961781
Reduced excessive IO stack size (had 4k, is using 0.7k, has now 2k)
2013-08-11 16:54:24 +02:00
Jean Cyr
36679fbb39
Some DSM satellites are fussier about bind pulse timing
...
These values work better
2013-08-10 11:22:08 -04:00
Andrew Tridgell
46fd904b5a
px4io: include board_config.h
...
without this we don't get the I2C interface built for PX4IO
2013-08-06 09:21:59 +02:00
px4dev
9d6ec6b365
Restructure things so that the PX4 configs move out of the NuttX tree, and most of the PX4-specific board configuration data moves out of the config and into the board driver.
...
Rename some directories that got left behind in the great board renaming.
2013-08-02 22:34:55 -07:00
Andrew Tridgell
c7d8535151
px4io: don't try the px4io serial interface on FMUv1
...
this caused px4io start to fail on FMUv1
2013-08-02 12:45:41 +02:00
Lorenz Meier
dd3033fa6f
Symbol cleanup for servo vs. battery voltage
2013-07-26 15:16:48 +02:00
px4dev
5679a1b2b1
Fix handling of register read operation errors.
2013-07-17 09:19:17 -07:00
Lorenz Meier
e86e2a0938
Add additional file name options
2013-07-17 07:57:02 +02:00
Lorenz Meier
ce8e2fd726
Fixed compile error due to bad merge
2013-07-16 09:00:21 +02:00
px4dev
dca9019f75
Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
2013-07-14 13:04:44 -07:00
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
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
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
e67f6a51a3
Make px4io driver filenames less ambiguous.
2013-07-13 20:13:53 -07:00
Jean Cyr
39b3fc8d32
Don't leave RX in bind mode on console open fail
...
Don't leave RX in bind mode in the unlikely eventuality that console
open fails
2013-07-11 10:36:17 -04:00
Jean Cyr
897b541b12
General cleanup of /dev/px4io and /dev/px4fmu
...
- Use distinct common symbols for px4io and px4fmu device files, and use
instead of hardcoded filenames
- Use common symbols defining px4io bits consistently between px4fmu and
px4io builds.
2013-07-09 20:37:00 -04:00
px4dev
b4029dd824
Pull v2 pieces up to build with the merge
2013-07-07 17:53:55 -07:00
Jean Cyr
20103f572f
Minor px4io optimization
...
Since this module creates the PX4IO object and that the IOCTL function
doesn't use the file descriptor parameter, there is no need to invoke
IOCTL via the filesystem since we can call it directly.
2013-07-07 20:19:27 -04:00
Jean Cyr
dab652faf6
Prevent RELAY1 control via IOCTL if DSM bind feature is enabled
2013-07-07 19:04:30 -04:00
Jean Cyr
35711280df
Merge remote-tracking branch 'upstream/master'
2013-07-07 14:29:30 -04:00
px4dev
8fa226c909
Tweak protocol register assignments and add new registers to accommodate differences in IOv2.
2013-07-06 23:59:35 -07: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
Jean Cyr
3f9f2018e2
Support binding DSM2 and DSMX satellite receivers
...
The px4io bind command allows you to put a DSM satellite receiver into
bind mode. Since this feature requires that
the dsm VCC line (red wire) be cut and routed through relay one, it is
not enabled by default in order not to
affect those not using a DSM satellite receiver or wising to use relay
one for other purposes.
NOTE: Binding DSM2 satellites in 11-bit mode is not supported due to
potential bug in some DSM2 receiver streams
when in 11-bit mode. Furthermore the px4io software folds 11 bit data
down to 10 bits so there is no resolution
advantage to to 11-bit mode.
To enable the feature the RC_RL1_DSM_VCC parameter must be set to a non
zero value from the console, or using
QGroundControl:
param set RC_RL1_DSM_VCC 1
From the console you can initiate DSM bind mode with:
uorb start
param set RC_RL1_DSM_VCC 1
px4io start
px4io bind dsm2
For binding a DSMX satellite to a DSMX transmitter you would instead
use:
px4io bind dsmx
Your receiver module should start a rapid flash and you can follow the
normal binding sequence of your
transmitter.
Note: The value of parameter RC_RL1_DSM_VCC defaults to 0, so none of
this will have any effect on an unmodified
DSM receiver connection. For this feature to work, the power wire (red)
must be cut and each side connected to a
terminal on relay1 of the px4io board.
This has been tested using Spektrum as well as Hobby King 'Orange' DSM
satellite receivers.
Both px4fmu and px4io images are updated.
2013-07-05 20:51:29 -04: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
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
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
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