aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-04 20:49:22 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-05 18:45:05 -0400
commitde3d27fc2badd4f2a992da5ff7f8bba3937016fe (patch)
tree1dae55092f9bfe26d85478dad62d800697eb4391
parent730518f2c4daf6ca90f939af9b18c8d21adee977 (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.txt51
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===========================
2Walkera WK-0701 transmitter
3===========================
1 4
2Walkera WK-0701 transmitter is supplied with a ready to fly Walkera 5Walkera WK-0701 transmitter is supplied with a ready to fly Walkera
3helicopters such as HM36, HM37, HM60. The walkera0701 module enables to use 6helicopters such as HM36, HM37, HM60. The walkera0701 module enables to use
@@ -10,7 +13,8 @@ or use cogito:
10cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick 13cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick
11 14
12 15
13Connecting to PC: 16Connecting to PC
17================
14 18
15At back side of transmitter S-video connector can be found. Modulation 19At back side of transmitter S-video connector can be found. Modulation
16pulses from processor to HF part can be found at pin 2 of this connector, 20pulses 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
20Cable: (walkera TX to parport) 24Cable: (walkera TX to parport)
21 25
22Walkera WK-0701 TX S-VIDEO connector: 26Walkera 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
34I use green LED and BC109 NPN transistor. 38I use green LED and BC109 NPN transistor.
35 39
36Software: 40Software
41========
37 42
38Build kernel with walkera0701 module. Module walkera0701 need exclusive 43Build kernel with walkera0701 module. Module walkera0701 need exclusive
39access to parport, modules like lp must be unloaded before loading 44access 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
47Technical details: 52Technical details
53=================
48 54
49Driver use interrupt from parport ACK input bit to measure pulse length 55Driver use interrupt from parport ACK input bit to measure pulse length
50using hrtimers. 56using hrtimers.
@@ -53,17 +59,29 @@ Frame format:
53Based on walkera WK-0701 PCM Format description by Shaul Eizikovich. 59Based 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
56Signal pulses: 62Signal pulses
57 (ANALOG) 63-------------
58 SYNC BIN OCT 64
59 +---------+ +------+ 65::
60 | | | | 66
61--+ +------+ +--- 67 (ANALOG)
68 SYNC BIN OCT
69 +---------+ +------+
70 | | | |
71 --+ +------+ +---
72
73Frame
74-----
75
76::
62 77
63Frame:
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
66pulse length: 80pulse 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
81to bin change or octal value to bin change). 99to bin change or octal value to bin change).
82 100
83Binary data representations: 101Binary data representations
102---------------------------
84 103
85One binary and octal value can be grouped to nibble. 24 nibbles + one binary 104One binary and octal value can be grouped to nibble. 24 nibbles + one binary
86values can be sampled between sync pulses. 105values can be sampled between sync pulses.
@@ -100,10 +119,10 @@ binary value can be sampled. This bit and magic number is not used in
100software driver. Some details about this magic numbers can be found in 119software driver. Some details about this magic numbers can be found in
101Walkera_Wk-0701_PCM.pdf. 120Walkera_Wk-0701_PCM.pdf.
102 121
103Checksum calculation: 122Checksum calculation
123--------------------
104 124
105Summary of octal values in nibbles must be same as octal value in checksum 125Summary of octal values in nibbles must be same as octal value in checksum
106nibble (only first 3 bits are used). Binary value for checksum nibble is 126nibble (only first 3 bits are used). Binary value for checksum nibble is
107calculated by sum of binary values in checked nibbles + sum of octal values 127calculated by sum of binary values in checked nibbles + sum of octal values
108in checked nibbles divided by 8. Only bit 0 of this sum is used. 128in checked nibbles divided by 8. Only bit 0 of this sum is used.
109