//Line line;
        public override void Start()
        {
            //default 默认返回到VAB楼顶靠北的那个停机坪   //???停机坪不是东西向两个的吗哪里有靠北的 我都不记得我这写的什么玩意
            Lon              = -74.6200965;
            Lat              = -0.0967588;
            Height           = 0;// 110;
            DescendHeight    = 13000;
            preDescendAction = 10;
            DecAoA           = 15 * Mathf.Deg2Rad;
            SafeVel          = 240;
            AoAStartVel      = 600;
            MaxAeroTilt      = 12 * Mathf.Deg2Rad;
            MaxLandingTilt   = 6 * Mathf.Deg2Rad;

            //init
            stability          = GetOrAddComponent <StabilityControlSeparated>();
            lastStatus         = status;
            data               = GetOrAddComponent <CommonDataStream>();
            vessel.Control.SAS = false;
            vessel.Control.RCS = true;

            WaitStart();

            //debug
            //line = connection.Drawing().AddLine(Vector3.Zero.ToTuple(), Vector3.One.ToTuple(), vessel.SurfaceReferenceFrame);
            //line.Thickness = 5;
        }
示例#2
0
        public override void Start()
        {
            data                = GetOrAddComponent <CommonDataStream>();
            stability           = GetOrAddComponent <StabilityControlSeparated>();
            stability.reference = surfaceRef;
            stability.direction = new Vector3(1, 0, 0);
            targetPosition      = new Vector3(10, 20, 0);

            StartCoroutine(CreateHybridTimer());

            foreach (var engine in vessel.Parts.Engines)
            {
                engine.Active = true;
            }
            vessel.Control.SAS = false;

            if (showLine)
            {
                line = connection.Drawing().AddLine(Vector3.Zero.ToTuple(), Vector3.One.ToTuple(), surfaceRef);
            }
            //vessel.Control.ActivateNextStage();
        }