Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 393 → Rev 459

/branches/Flight-Ctrl_V0_64_3_GPS_work_Jochen/uart.c
31,6 → 31,8
struct str_VersionInfo VersionInfo;
int Debug_Timer;
 
char newData_navPosUtm = 0; // Flag, wenn neue PosUtm-Daten vorliegen (211007Kr)
 
static uint8_t gpsState;
#define GPS_EMPTY 0
#define GPS_SYNC1 1
41,6 → 43,7
#define GPS_FILLING 6
#define GPS_CKA 7
#define GPS_CKB 8
 
gpsInfo_t actualPos; // measured position (last gps record)
 
#define SYNC_CHAR1 0xb5
69,18 → 72,6
 
typedef struct {
unsigned long ITOW; // time of week
long LON; // longitude in 1e-07 deg
long LAT; // lattitude
long HEIGHT; // height in mm
long HMSL; // height above mean sea level im mm
unsigned long Hacc; // horizontal accuracy in mm
unsigned long Vacc; // vertical accuracy in mm
uint8_t packetStatus;
} NAV_POSLLH_t;
 
 
typedef struct {
unsigned long ITOW; // time of week
long EAST; // cm UTM Easting
long NORTH; // cm UTM Nording
long ALT; // cm altitude
136,13 → 127,6
volatile uint8_t ignorePacket; // true when previous packet was not processed
 
 
// distance to target position
long rollOffset; // in 10cm
long nickOffset;
 
#define GPS_INTCYCLES 100
#define GPS_I_LIMIT (long)(40 * MAINLOOPS_PER_SEC)
 
#ifdef GPS_DEBUG // if set then the GPS data is transfered to display
extern volatile uint8_t v24state;
char buf[200];
205,6 → 189,7
actualPos.easting = navPosUtm.EAST;
actualPos.altitude = navPosUtm.ALT;
navPosUtm.packetStatus = 0;
newData_navPosUtm = 1; // (211007Kr)
}