コード例 #1
0
        public FlightComputer(ISignalProcessor s)
        {
            SignalProcessor  = s;
            Vessel           = s.Vessel;
            SanctionedPilots = new List <Action <FlightCtrlState> >();
            pid = new PIDControllerV2(0, 0, 0, 1, -1);
            initPIDParameters();
            lastAct = Vector3d.zero;

            var target = TargetCommand.WithTarget(FlightGlobals.fetch.VesselTarget);

            mActiveCommands[target.Priority] = target;
            var attitude = AttitudeCommand.Off();

            mActiveCommands[attitude.Priority] = attitude;
        }
コード例 #2
0
        public FlightComputer(ISignalProcessor s)
        {
            SignalProcessor = s;
            Vessel = s.Vessel;
            SanctionedPilots = new List<Action<FlightCtrlState>>();
            pid = new PIDControllerV2(0, 0, 0, 1, -1);
            initPIDParameters();
            lastAct = Vector3d.zero;

            var target = TargetCommand.WithTarget(FlightGlobals.fetch.VesselTarget);
            mActiveCommands[target.Priority] = target;
            var attitude = AttitudeCommand.Off();
            mActiveCommands[attitude.Priority] = attitude;
        }