Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 306 → Rev 307

/QMK-Groundstation/trunk/typedefs.h
1,38 → 1,19
#ifndef TYPEDEFS_H
#define TYPEDEFS_H
 
#ifdef _BETA_
#define INVALID 0x00
#define NEWDATA 0x01
#define PROCESSED 0x02
 
#define INVALID 0x00
#define NEWDATA 0x01
#define PROCESSED 0x02
typedef struct
{
int32_t Longitude; // in 1E-7 deg
int32_t Latitude; // in 1E-7 deg
int32_t Altitude; // in mm
uint8_t Status; // validity of data
} __attribute__((packed)) GPS_Pos_t;
 
typedef struct
{
int32_t Longitude; // in 1E-7 deg
int32_t Latitude; // in 1E-7 deg
int32_t Altitude; // in mm
uint8_t Status; // validity of data
} __attribute__((packed)) GPS_Pos_t;
 
#else
 
typedef enum
{
INVALID = 0,
NEWDATA = 1,
PROCESSED = 2
} Status_t;
 
typedef struct
{
int32_t Longitude; // in 1E-7 deg
int32_t Latitude; // in 1E-7 deg
int32_t Altitude; // in mm
Status_t Status; // validity of data
} __attribute__((packed)) GPS_Pos_t;
#endif
 
typedef struct
{
GPS_Pos_t Position; // the gps position of the waypoint, see ubx.h for details
43,4 → 24,11
uint8_t reserve[12]; // reserve
} __attribute__((packed)) Waypoint_t;
 
typedef struct
{
char Revision;
char Name[12];
signed char Motor[16][4];
} Mixer_t;
 
#endif // TYPEDEFS_H