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