Пример #1
0
 /// <summary>
 /// Returns true if the gps data can just be sent once, otherwise false.
 /// </summary>
 /// <param name="ML">The mav list.</param>
 /// <returns>true if can send once, otherwise false.</returns>
 private static bool GetCanJustSendOnce(Mavlink.MAVList ML)
 {
     //RTCM message has no target id so only needs to be sent once.
     return(rtcm_msg && GetAreAllUsingSameMavlinkVersion(ML));
 }
Пример #2
0
 /// <summary>
 /// Returns true if everything in the list is using the same mavlink version, else false.
 /// </summary>
 /// <param name="ML">The list.</param>
 /// <returns></returns>
 private static bool GetAreAllUsingSameMavlinkVersion(Mavlink.MAVList ML)
 {
     return(!ML.Any(M => M.mavlinkv2 != ML.First().mavlinkv2));
 }