static void Loc_cbInterval( LocState *pts ) { /* Cancel if it was deferred. */ if( TRUE == pts->bSetForCancellation ) { Loc_Cancel( pts->pcbResp ); return; } DBGPRINTF( "@Loc_cbInterval "); // Request GPSInfo if( TRUE == pts->bInProgress && SUCCESS != IPOSDET_GetGPSInfo( pts->pPos, AEEGPS_GETINFO_LOCATION | AEEGPS_GETINFO_VELOCITY | AEEGPS_GETINFO_ALTITUDE | AEEGPS_GETINFO_VERSION_1, AEEGPS_ACCURACY_LEVEL1, &pts->theInfo, &pts->cbInfo ) ) { DBGPRINTF( "IPOSDET_GetGPSInfo Failed!"); /* Report a failure and bailout */ pts->pResp->nErr = AEEGPS_ERR_GENERAL_FAILURE; Loc_Notify( pts ); Loc_Stop( pts ); } }
static void Track_cbInterval( TrackState *pts ) { /* Cancel if it was deferred. */ if( TRUE == pts->bSetForCancellation ) { Track_Cancel( pts->pcbResp ); return; } DBGPRINTF( "TRACK : bAuto:%d bLocal:%d", pts->bModeAuto, pts->bModeLocal ); // Request GPSInfo if( TRUE == pts->bInProgress && SUCCESS != IPOSDET_GetGPSInfo( pts->pPos, AEEGPS_GETINFO_LOCATION|AEEGPS_GETINFO_ALTITUDE, AEEGPS_ACCURACY_LEVEL1, &pts->theInfo, &pts->cbInfo ) ) { DBGPRINTF( "@IPOSDET_GetGPSInfo Failed!"); /* Report a failure and bailout */ pts->pResp->nErr = AEEGPS_ERR_GENERAL_FAILURE; Track_Notify( pts ); Track_Stop( pts ); } // Request Orientation //if( TRUE == pts->bInProgress && SUCCESS != IPOSDET_GetOrientation( pts->pPos, // AEEORIENTATION_REQ_AZIMUTH, &pts->orientInfo, &pts->cbOrientInfo ) ) { // DBGPRINTF( "IPOSDET_GetOrientation Failed!"); /* Report a failure and bailout */ //pts->pResp->nErr = AEEGPS_ERR_GENERAL_FAILURE; //Track_Notify( pts ); //Track_Stop( pts ); //} }