Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
127 ligi 1
 
130 ligi 2
 
127 ligi 3
#include <stdio.h>
4
#include <sys/socket.h>
5
#include <sys/types.h>
6
#include <netinet/in.h>
7
#include <unistd.h>
130 ligi 8
#include "bluetooth_handler.h"
9
#include "statistics.h"
127 ligi 10
 
11
struct ExternControl_s
12
{
13
  unsigned char Digital[2];   // (noch unbenutzt)
14
  unsigned char RemoteTasten; //(gab es schon für das virtuelle Display)
15
  signed char   Nick;
16
  signed char   Roll;
17
  signed char   Gier;
18
  unsigned char Gas;          //(es wird das Stick-Gas auf diesen Wert begrenzt; --> StickGas ist das Maximum)
19
  signed char   Higt;        //(Hoehenregler)
20
  unsigned char free;         // (unbenutzt)
21
  unsigned char Frame;        // (Bestätigung)
22
  unsigned char Config;
23
};
24
 
25
struct ExternControl_s  ExternControl;
26
 
27
extern int mk_socket;
28
 
29
//int connect_mk_bluetooth(char dest[18]);
30
int connect_mk_localhost_socket(int port);
130 ligi 31
int connect_mk_bluetooth(char dest[18]);
127 ligi 32
 
33
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len);
130 ligi 34
int read_from_mk();
127 ligi 35
 
130 ligi 36
extern char RxBuffer[150];
37
extern char PrintableRxBuffer[150];
38
extern int rx_last_length;