CLCmdGoGpsUpStreamData.fromLeap constructor
CLCmdGoGpsUpStreamData.fromLeap()
Implementation
factory CLCmdGoGpsUpStreamData.fromLeap(CLCmdGogpsBodyLeap bodyItem,int workoutType,double speed, int currentDist, double dDistance,double lat,double lon, int entryindex ){
return CLCmdGoGpsUpStreamData(
timestamp: bodyItem.timestamp + bodyItem.gpsData.elementAt(entryindex).secIndex,
secondindex:bodyItem.gpsData.elementAt(entryindex).secIndex,
mSport_type:workoutType, //轨迹类型
speed:speed,
longitude:lon,
latitude:lat,
distance_km:currentDist,
heartrate:bodyItem.gpsData.elementAt(entryindex).heartrate,
deltadis:dDistance,
);
}