public static async Task <MavParam> WriteParam(this IVehicleParameterProtocol src, string name, long value, CancellationToken cancel) { MavParam param; if (!src.Params.TryGetValue(name, out param)) { param = await src.ReadParam(name, cancel).ConfigureAwait(false); } return(await src.WriteParam(new MavParam(param, value), cancel).ConfigureAwait(false)); }
public static Task <MavParam> WriteParam(this IVehicleParameterProtocol src, MavParam param, CancellationToken cancel) { return(src.WriteParam(param, DefaultAttemptCount, cancel)); }
public static Task <MavParam> ReadParam(this IVehicleParameterProtocol src, short index, CancellationToken cancel) { return(src.ReadParam(index, DefaultAttemptCount, cancel)); }