/// <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)); }
/// <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)); }