Rev 645 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 645 | Rev 659 | ||
---|---|---|---|
Line 292... | Line 292... | ||
292 | UBX_Timeout = SetDelay(UBX_TIMEOUT); |
292 | UBX_Timeout = SetDelay(UBX_TIMEOUT); |
293 | DebugOut.Analog[9]++; |
293 | DebugOut.Analog[9]++; |
294 | // update GPS data only if the status is INVALID or PROCESSED |
294 | // update GPS data only if the status is INVALID or PROCESSED |
295 | if(GPSData.Status != NEWDATA) |
295 | if(GPSData.Status != NEWDATA) |
296 | { // wait for new data at all neccesary ubx messages |
296 | { // wait for new data at all neccesary ubx messages |
297 | CountNewGpsDataIn5Sec++; |
297 | CountNewGpsDataIn5Sec++; |
298 | GPSData.Status = INVALID; |
298 | GPSData.Status = INVALID; |
299 | // update message cycle time |
299 | // update message cycle time |
300 | GPSData.MsgCycleTime = (u16)(UbxSol.itow-last_itow); |
300 | GPSData.MsgCycleTime = (u16)(UbxSol.itow-last_itow); |
301 | milliseconds += GPSData.MsgCycleTime; |
301 | milliseconds += GPSData.MsgCycleTime; |
302 | last_itow = UbxSol.itow; // update last itow |
302 | last_itow = UbxSol.itow; // update last itow |