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>
483 ligi 4
#include <termios.h>
127 ligi 5
#include <sys/socket.h>
6
#include <sys/types.h>
7
#include <netinet/in.h>
8
#include <unistd.h>
140 ligi 9
#include <inttypes.h>
130 ligi 10
#include "bluetooth_handler.h"
11
#include "statistics.h"
127 ligi 12
 
13
struct ExternControl_s
14
{
15
  unsigned char Digital[2];   // (noch unbenutzt)
16
  unsigned char RemoteTasten; //(gab es schon für das virtuelle Display)
17
  signed char   Nick;
18
  signed char   Roll;
19
  signed char   Gier;
20
  unsigned char Gas;          //(es wird das Stick-Gas auf diesen Wert begrenzt; --> StickGas ist das Maximum)
21
  signed char   Higt;        //(Hoehenregler)
22
  unsigned char free;         // (unbenutzt)
23
  unsigned char Frame;        // (Bestätigung)
24
  unsigned char Config;
25
};
26
 
140 ligi 27
struct str_DebugOut
28
{
29
 unsigned char Digital[2];
30
  //# signed int
31
 
32
uint16_t Analog[32];    // Debugwert//
33
};
34
 
35
struct str_DebugOut    DebugOut;
36
 
37
 
127 ligi 38
struct ExternControl_s  ExternControl;
39
 
40
extern int mk_socket;
41
 
42
//int connect_mk_bluetooth(char dest[18]);
43
int connect_mk_localhost_socket(int port);
130 ligi 44
int connect_mk_bluetooth(char dest[18]);
483 ligi 45
int connect_mk_tty(char* tty_filename);
127 ligi 46
 
47
void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len);
130 ligi 48
int read_from_mk();
127 ligi 49
 
483 ligi 50
 
51
#define MAX_BUFF_LEN 150
52
 
53
extern unsigned char RxBuffer[MAX_BUFF_LEN ];
54
extern char PrintableRxBuffer[MAX_BUFF_LEN ];
130 ligi 55
extern int rx_last_length;