Subversion Repositories Projects

Rev

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