diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-04 20:49:22 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-05 18:45:05 -0400 |
commit | de3d27fc2badd4f2a992da5ff7f8bba3937016fe (patch) | |
tree | 1dae55092f9bfe26d85478dad62d800697eb4391 | |
parent | 730518f2c4daf6ca90f939af9b18c8d21adee977 (diff) |
Input: walkera0701 - convert documentation into ReST format
This file require minimum adjustments to be a valid ReST file.
Do it, in order to be able to parse it with Sphinx.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | Documentation/input/walkera0701.txt | 51 |
1 files changed, 35 insertions, 16 deletions
diff --git a/Documentation/input/walkera0701.txt b/Documentation/input/walkera0701.txt index 49e3ac60dcef..2adda99ca717 100644 --- a/Documentation/input/walkera0701.txt +++ b/Documentation/input/walkera0701.txt | |||
@@ -1,3 +1,6 @@ | |||
1 | =========================== | ||
2 | Walkera WK-0701 transmitter | ||
3 | =========================== | ||
1 | 4 | ||
2 | Walkera WK-0701 transmitter is supplied with a ready to fly Walkera | 5 | Walkera WK-0701 transmitter is supplied with a ready to fly Walkera |
3 | helicopters such as HM36, HM37, HM60. The walkera0701 module enables to use | 6 | helicopters such as HM36, HM37, HM60. The walkera0701 module enables to use |
@@ -10,7 +13,8 @@ or use cogito: | |||
10 | cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick | 13 | cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick |
11 | 14 | ||
12 | 15 | ||
13 | Connecting to PC: | 16 | Connecting to PC |
17 | ================ | ||
14 | 18 | ||
15 | At back side of transmitter S-video connector can be found. Modulation | 19 | At back side of transmitter S-video connector can be found. Modulation |
16 | pulses from processor to HF part can be found at pin 2 of this connector, | 20 | pulses from processor to HF part can be found at pin 2 of this connector, |
@@ -19,7 +23,8 @@ modulation pulses to PC, signal pulses must be amplified. | |||
19 | 23 | ||
20 | Cable: (walkera TX to parport) | 24 | Cable: (walkera TX to parport) |
21 | 25 | ||
22 | Walkera WK-0701 TX S-VIDEO connector: | 26 | Walkera WK-0701 TX S-VIDEO connector:: |
27 | |||
23 | (back side of TX) | 28 | (back side of TX) |
24 | __ __ S-video: canon25 | 29 | __ __ S-video: canon25 |
25 | / |_| \ pin 2 (signal) NPN parport | 30 | / |_| \ pin 2 (signal) NPN parport |
@@ -30,10 +35,10 @@ Walkera WK-0701 TX S-VIDEO connector: | |||
30 | ------- 3 __________________________________|________________ 25 GND | 35 | ------- 3 __________________________________|________________ 25 GND |
31 | E | 36 | E |
32 | 37 | ||
33 | |||
34 | I use green LED and BC109 NPN transistor. | 38 | I use green LED and BC109 NPN transistor. |
35 | 39 | ||
36 | Software: | 40 | Software |
41 | ======== | ||
37 | 42 | ||
38 | Build kernel with walkera0701 module. Module walkera0701 need exclusive | 43 | Build kernel with walkera0701 module. Module walkera0701 need exclusive |
39 | access to parport, modules like lp must be unloaded before loading | 44 | access to parport, modules like lp must be unloaded before loading |
@@ -44,7 +49,8 @@ be changed by TX "joystick", check output from /proc/interrupts. Value for | |||
44 | 49 | ||
45 | 50 | ||
46 | 51 | ||
47 | Technical details: | 52 | Technical details |
53 | ================= | ||
48 | 54 | ||
49 | Driver use interrupt from parport ACK input bit to measure pulse length | 55 | Driver use interrupt from parport ACK input bit to measure pulse length |
50 | using hrtimers. | 56 | using hrtimers. |
@@ -53,17 +59,29 @@ Frame format: | |||
53 | Based on walkera WK-0701 PCM Format description by Shaul Eizikovich. | 59 | Based on walkera WK-0701 PCM Format description by Shaul Eizikovich. |
54 | (downloaded from http://www.smartpropoplus.com/Docs/Walkera_Wk-0701_PCM.pdf) | 60 | (downloaded from http://www.smartpropoplus.com/Docs/Walkera_Wk-0701_PCM.pdf) |
55 | 61 | ||
56 | Signal pulses: | 62 | Signal pulses |
57 | (ANALOG) | 63 | ------------- |
58 | SYNC BIN OCT | 64 | |
59 | +---------+ +------+ | 65 | :: |
60 | | | | | | 66 | |
61 | --+ +------+ +--- | 67 | (ANALOG) |
68 | SYNC BIN OCT | ||
69 | +---------+ +------+ | ||
70 | | | | | | ||
71 | --+ +------+ +--- | ||
72 | |||
73 | Frame | ||
74 | ----- | ||
75 | |||
76 | :: | ||
62 | 77 | ||
63 | Frame: | ||
64 | SYNC , BIN1, OCT1, BIN2, OCT2 ... BIN24, OCT24, BIN25, next frame SYNC .. | 78 | SYNC , BIN1, OCT1, BIN2, OCT2 ... BIN24, OCT24, BIN25, next frame SYNC .. |
65 | 79 | ||
66 | pulse length: | 80 | pulse length |
81 | ------------ | ||
82 | |||
83 | :: | ||
84 | |||
67 | Binary values: Analog octal values: | 85 | Binary values: Analog octal values: |
68 | 86 | ||
69 | 288 uS Binary 0 318 uS 000 | 87 | 288 uS Binary 0 318 uS 000 |
@@ -80,7 +98,8 @@ pulse length: | |||
80 | (Warning, pulses on ACK are inverted by transistor, irq is raised up on sync | 98 | (Warning, pulses on ACK are inverted by transistor, irq is raised up on sync |
81 | to bin change or octal value to bin change). | 99 | to bin change or octal value to bin change). |
82 | 100 | ||
83 | Binary data representations: | 101 | Binary data representations |
102 | --------------------------- | ||
84 | 103 | ||
85 | One binary and octal value can be grouped to nibble. 24 nibbles + one binary | 104 | One binary and octal value can be grouped to nibble. 24 nibbles + one binary |
86 | values can be sampled between sync pulses. | 105 | values can be sampled between sync pulses. |
@@ -100,10 +119,10 @@ binary value can be sampled. This bit and magic number is not used in | |||
100 | software driver. Some details about this magic numbers can be found in | 119 | software driver. Some details about this magic numbers can be found in |
101 | Walkera_Wk-0701_PCM.pdf. | 120 | Walkera_Wk-0701_PCM.pdf. |
102 | 121 | ||
103 | Checksum calculation: | 122 | Checksum calculation |
123 | -------------------- | ||
104 | 124 | ||
105 | Summary of octal values in nibbles must be same as octal value in checksum | 125 | Summary of octal values in nibbles must be same as octal value in checksum |
106 | nibble (only first 3 bits are used). Binary value for checksum nibble is | 126 | nibble (only first 3 bits are used). Binary value for checksum nibble is |
107 | calculated by sum of binary values in checked nibbles + sum of octal values | 127 | calculated by sum of binary values in checked nibbles + sum of octal values |
108 | in checked nibbles divided by 8. Only bit 0 of this sum is used. | 128 | in checked nibbles divided by 8. Only bit 0 of this sum is used. |
109 | |||