turret_right added

This commit is contained in:
Stefan Helmert 2014-01-13 19:10:12 +01:00
parent c3417a2803
commit 8b56939b21
5 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# depslib dependency file v1.0
1389064539 source:/home/stefan/Proj/UDPclient/main.c
1389621137 source:/home/stefan/Proj/UDPclient/main.c
<pthread.h>
<stdio.h>
<stdlib.h>

Binary file not shown.

View File

@ -1,5 +1,5 @@
INPUTDEV /dev/input/event2
FRAME_US 100000
SERVER 10.8.212.195:32000
SERVER 10.8.191.196:32000
TIMEOUT 250
CLINBR 0

View File

@ -119,6 +119,13 @@ int event2data(henglong_t* henglong, struct input_event event)
henglong->turret_left = 0;
}
}
if(56==event.code){
if(event.value){
henglong->turret_right = 1;
}else{
henglong->turret_right = 0;
}
}
if(20==event.code){
if(event.value){
henglong->turretelev = 1;

Binary file not shown.