Subversion Repositories NaviCtrl

Rev

Rev 281 | Rev 360 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 281 Rev 322
Line 295... Line 295...
295
                                // update message cycle time
295
                                // update message cycle time
296
                                GPSData.MsgCycleTime = (u16)(UbxSol.itow-last_itow);
296
                                GPSData.MsgCycleTime = (u16)(UbxSol.itow-last_itow);
297
                                last_itow = UbxSol.itow; // update last itow
297
                                last_itow = UbxSol.itow; // update last itow
298
//      DebugOut.Analog[16] = GPSData.MsgCycleTime;
298
//      DebugOut.Analog[16] = GPSData.MsgCycleTime;
299
                                // NAV SOL
299
                                // NAV SOL
300
                                GPSData.Flags =                                 UbxSol.Flags;
300
                                GPSData.Flags =         (GPSData.Flags & 0xf0) | (UbxSol.Flags & 0x0f); // we take only the lower bits
301
                                GPSData.NumOfSats =                     UbxSol.numSV;
301
                                GPSData.NumOfSats =                     UbxSol.numSV;
302
                                GPSData.SatFix =                                UbxSol.GPSfix;
302
                                GPSData.SatFix =                                UbxSol.GPSfix;
303
                                GPSData.Position_Accuracy =             UbxSol.PAcc;
303
                                GPSData.Position_Accuracy =             UbxSol.PAcc;
304
                                GPSData.Speed_Accuracy =                UbxSol.SAcc;
304
                                GPSData.Speed_Accuracy =                UbxSol.SAcc;
305
                                SetGPSTime(&SystemTime); // update system time
305
                                SetGPSTime(&SystemTime); // update system time