resUpdateGoGPSUpBodyListWithHeader function
void
resUpdateGoGPSUpBodyListWithHeader(
- Pointer<
PERIPHERAL_GOGPS_HEADER_V2> pGogpsHeader, - Pointer<
PERIPHERAL_GOGPS_BODY_V2> pGoGPSBody, - int size,
- int bHeaderUpdated,
Implementation
void resUpdateGoGPSUpBodyListWithHeader(
Pointer<PERIPHERAL_GOGPS_HEADER_V2> pGogpsHeader,
Pointer<PERIPHERAL_GOGPS_BODY_V2> pGoGPSBody,
int size,
int bHeaderUpdated) {
//header
final header = CLCmdGogpsHeaderV2.from(pGogpsHeader.ref);
updateGoGpsHeader(header,bHeaderUpdated);
if (GoGpsParam.mdGogpsLastLat.abs() < 0.01 && GoGpsParam.mdGogpsLastLng.abs() < 0.01) {
return ;
}
// CLCmdGogpsHeaderV2.subject.add(CLCmdGogpsHeaderV2.from(pGogpsHeader.ref));
if(size>0){
for(int i=0; i<size; i++){
final bodyItem = CLCmdGogpsBodyLeap.from(pGoGPSBody[i]) ;
//接口回调在 updateGoGPSUpBodyEntryLeap 内部
updateGoGPSUpBodyEntryLeap(bodyItem);
// CLCmdGogpsBodyV2.subject.add(CLCmdGogpsBodyV2.from(pGoGPSBody[i]));
}
}
slog('resUpdateGoGPSUpBodyListWithHeader: entered');
}