Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mauro Carvalho Chehab and committed by
Dmitry Torokhov
de3d27fc 730518f2

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