public static async Task <MavParam> WriteParam(this IMavlinkParameterClient 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 IMavlinkParameterClient src, MavParam param, CancellationToken cancel) { return(src.WriteParam(param, DefaultAttemptCount, cancel)); }