Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public static Task <MavParam> WriteParam(this IVehicleParameterProtocol src, MavParam param, CancellationToken cancel)
 {
     return(src.WriteParam(param, DefaultAttemptCount, cancel));
 }
Esempio n. 3
0
 public static Task <MavParam> ReadParam(this IVehicleParameterProtocol src, short index, CancellationToken cancel)
 {
     return(src.ReadParam(index, DefaultAttemptCount, cancel));
 }