Implementation
static Mesg createSplitMesg() {
int fieldIndex, subfieldIndex;
final Mesg newMesg = Mesg("Split", MesgNum.split);
fieldIndex = 0;
newMesg.setField(
Field(
"MessageIndex",
254,
132,
1.0,
0.0,
"",
false,
ProfileType.messageIndex,
),
);
fieldIndex++;
newMesg.setField(
Field("SplitType", 0, 0, 1.0, 0.0, "", false, ProfileType.splitType),
);
fieldIndex++;
newMesg.setField(
Field(
"TotalElapsedTime",
1,
134,
1000.0,
0.0,
"s",
false,
ProfileType.uint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"TotalTimerTime",
2,
134,
1000.0,
0.0,
"s",
false,
ProfileType.uint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"TotalDistance",
3,
134,
100.0,
0.0,
"m",
false,
ProfileType.uint32,
),
);
fieldIndex++;
newMesg.setField(
Field("AvgSpeed", 4, 134, 1000.0, 0.0, "m/s", false, ProfileType.uint32),
);
fieldIndex++;
newMesg.setField(
Field("StartTime", 9, 134, 1.0, 0.0, "", false, ProfileType.dateTime),
);
fieldIndex++;
newMesg.setField(
Field("TotalAscent", 13, 132, 1.0, 0.0, "m", false, ProfileType.uint16),
);
fieldIndex++;
newMesg.setField(
Field("TotalDescent", 14, 132, 1.0, 0.0, "m", false, ProfileType.uint16),
);
fieldIndex++;
newMesg.setField(
Field(
"StartPositionLat",
21,
133,
1.0,
0.0,
"semicircles",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"StartPositionLong",
22,
133,
1.0,
0.0,
"semicircles",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"EndPositionLat",
23,
133,
1.0,
0.0,
"semicircles",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"EndPositionLong",
24,
133,
1.0,
0.0,
"semicircles",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field("MaxSpeed", 25, 134, 1000.0, 0.0, "m/s", false, ProfileType.uint32),
);
fieldIndex++;
newMesg.setField(
Field(
"AvgVertSpeed",
26,
133,
1000.0,
0.0,
"m/s",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field("EndTime", 27, 134, 1.0, 0.0, "", false, ProfileType.dateTime),
);
fieldIndex++;
newMesg.setField(
Field(
"TotalCalories",
28,
134,
1.0,
0.0,
"kcal",
false,
ProfileType.uint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"StartElevation",
74,
134,
5.0,
500.0,
"m",
false,
ProfileType.uint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"TotalMovingTime",
110,
134,
1000.0,
0.0,
"s",
false,
ProfileType.uint32,
),
);
fieldIndex++;
return newMesg;
}