Subversion Repositories Projects

Compare Revisions

Regard whitespace Rev 306 → Rev 307

/QMK-Groundstation/trunk/typedefs.h
1,8 → 1,6
#ifndef TYPEDEFS_H
#define TYPEDEFS_H
 
#ifdef _BETA_
 
#define INVALID 0x00
#define NEWDATA 0x01
#define PROCESSED 0x02
15,26 → 13,9
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
int16_t Heading; // orientation, future implementation
uint8_t ToleranceRadius; // in meters, if the MK is within that range around the target, then the next target is triggered
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