Subversion Repositories Projects

Rev

Rev 130 | Blame | Last modification | View Log | RSS feed



#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <inttypes.h>
#include "bluetooth_handler.h"
#include "statistics.h"

struct ExternControl_s
{
  unsigned char Digital[2];   // (noch unbenutzt)
  unsigned char RemoteTasten; //(gab es schon für das virtuelle Display)
  signed char   Nick;
  signed char   Roll;
  signed char   Gier;
  unsigned char Gas;          //(es wird das Stick-Gas auf diesen Wert begrenzt; --> StickGas ist das Maximum)
  signed char   Higt;        //(Hoehenregler)
  unsigned char free;         // (unbenutzt)
  unsigned char Frame;        // (Bestätigung)
  unsigned char Config;
};

struct str_DebugOut
{
 unsigned char Digital[2];
  //# signed int

uint16_t Analog[32];    // Debugwert//
};

struct str_DebugOut    DebugOut;


struct ExternControl_s  ExternControl;

extern int mk_socket;

//int connect_mk_bluetooth(char dest[18]);
int connect_mk_localhost_socket(int port);
int connect_mk_bluetooth(char dest[18]);

void SendOutData(unsigned char cmd,unsigned char modul, unsigned char *snd, unsigned char len);
int read_from_mk();

extern unsigned char RxBuffer[150];
extern char PrintableRxBuffer[150];
extern int rx_last_length;