Arduplane waypoints in mission planner 1.3.72

Yep, by default it loads config for copter. Just start Plane in simulator, once it connected settings are changed for Plane, you can disconnect, it will keep that way till next restart of MP.

But there is another way. If you save this as settoap.cs and put into C:\Program Files (x86)\Mission Planner\plugins directory (or wherever is your MP installed) it sets the default to Plane at start.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MissionPlanner.Utilities;
using System.IO;
using System.Windows.Forms;
using System.Diagnostics;
using MissionPlanner;
using MissionPlanner.ArduPilot;

namespace Shortcuts
{
    public class Plugin : MissionPlanner.Plugin.Plugin
    {
        public override string Name
        {
            get { return "Set default to ArduPlane"; }
        }

        public override string Version
        {
            get { return "1.0"; }
        }

        public override string Author
        {
            get { return "EOSBandi"; }
        }

        public override bool Init()
        {
            return true;
        }

        public override bool Loaded()
        {
            Host.cs.firmware = MissionPlanner.ArduPilot.Firmwares.ArduPlane;
            return true;
        }

        public override bool Loop()
        {
            return true;
        }

        public override bool Exit()
        {
            return true;
        }

    }
}
1 Like