Beispiel #1
0
        public static MissionItem AddNavMissionItem(this IVehicle vehicle, GeoPoint point)
        {
            var item = vehicle.AddMissionItem();

            item.Location.OnNext(point);
            item.Autocontinue.OnNext(true);
            item.Command.OnNext(MavCmd.MavCmdNavWaypoint);
            item.Current.OnNext(false);
            item.Frame.OnNext(MavFrame.MavFrameGlobalInt);
            item.MissionType.OnNext(MavMissionType.MavMissionTypeMission);
            item.Param1.OnNext(0);
            item.Param2.OnNext(0);
            item.Param3.OnNext(0);
            item.Param4.OnNext(0);
            return(item);
        }