Subversion Repositories NaviCtrl

Rev

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

Rev 454 Rev 491
Line 293... Line 293...
293
                        { // wait for new data at all neccesary ubx messages
293
                        { // wait for new data at all neccesary ubx messages
294
                                GPSData.Status = INVALID;
294
                                GPSData.Status = INVALID;
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;
-
 
299
                                // NAV SOL
298
                                // NAV SOL
300
                                GPSData.Flags =         (GPSData.Flags & 0xf0) | (UbxSol.Flags & 0x0f); // we take only the lower bits
299
                                GPSData.Flags =         (GPSData.Flags & 0xf0) | (UbxSol.Flags & 0x0f); // we take only the lower bits
301
                                GPSData.NumOfSats =                     UbxSol.numSV;
300
                                GPSData.NumOfSats =                     UbxSol.numSV;
302
                                GPSData.SatFix =                                UbxSol.GPSfix;
301
                                GPSData.SatFix =                                UbxSol.GPSfix;
303
                                GPSData.Position_Accuracy =             UbxSol.PAcc;
302
                                GPSData.Position_Accuracy =             UbxSol.PAcc;
Line 322... Line 321...
322
                        UbxSol.Status =                                 PROCESSED;      // ready for new data
321
                        UbxSol.Status =                                 PROCESSED;      // ready for new data
323
                        UbxPosLlh.Status =                              PROCESSED;      // ready for new data
322
                        UbxPosLlh.Status =                              PROCESSED;      // ready for new data
324
                        UbxVelNed.Status =                              PROCESSED;      // ready for new data
323
                        UbxVelNed.Status =                              PROCESSED;      // ready for new data
325
                } // EOF all itow are equal
324
                } // EOF all itow are equal
326
        } // EOF all ubx messages received
325
        } // EOF all ubx messages received
327
 
-
 
328
//++++++++
-
 
329
//GPSData.Position.Longitude = 1517409123L;  // Hamilton, Australia
-
 
330
//GPSData.Position.Latitude = -329294773L;       // Hamilton, Australia
-
 
331
//++++++++
-
 
332
//GPSData.Position.Longitude =-1556010020L;  // Alaska
-
 
333
//GPSData.Position.Latitude = 629581270L;        // Alaska
-
 
334
//++++++++
-
 
335
//GPSData.Position.Longitude =-584343419L;   // Buenos aires
-
 
336
//GPSData.Position.Latitude = -345464421L;   // Buenos aires
-
 
337
//++++++++
-
 
338
//GPSData.Position.Longitude =1683362691L;   // Neuseeland
-
 
339
//GPSData.Position.Latitude = -465945926L;   // Neuseeland
-
 
340
}
326
}
Line 341... Line 327...
341
 
327
 
342
 
328