createCoursePointMesg static method
Mesg
createCoursePointMesg(
)
Implementation
static Mesg createCoursePointMesg() {
int fieldIndex, subfieldIndex;
Mesg newMesg = Mesg("CoursePoint", MesgNum.coursePoint);
fieldIndex = 0;
newMesg.setField(
Field(
"MessageIndex",
254,
132,
1.0,
0.0,
"",
false,
ProfileType.messageIndex,
),
);
fieldIndex++;
newMesg.setField(
Field("Timestamp", 1, 134, 1.0, 0.0, "", false, ProfileType.dateTime),
);
fieldIndex++;
newMesg.setField(
Field(
"PositionLat",
2,
133,
1.0,
0.0,
"semicircles",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field(
"PositionLong",
3,
133,
1.0,
0.0,
"semicircles",
false,
ProfileType.sint32,
),
);
fieldIndex++;
newMesg.setField(
Field("Distance", 4, 134, 100.0, 0.0, "m", false, ProfileType.uint32),
);
fieldIndex++;
newMesg.setField(
Field("Type", 5, 0, 1.0, 0.0, "", false, ProfileType.coursePoint),
);
fieldIndex++;
newMesg.setField(
Field("Name", 6, 7, 1.0, 0.0, "", false, ProfileType.string),
);
fieldIndex++;
newMesg.setField(
Field("Favorite", 8, 0, 1.0, 0.0, "", false, ProfileType.bool_),
);
fieldIndex++;
return newMesg;
}