RemoteTech.FlightComputer.FlightComputer.OnFlyByWirePre C# (CSharp) Method

OnFlyByWirePre() private method

Control the flight. Called before the Vessel.OnFlyByWire method.
private OnFlyByWirePre ( FlightCtrlState fcs ) : void
fcs FlightCtrlState The input flight control state.
return void
        private void OnFlyByWirePre(FlightCtrlState fcs)
        {
            if (!SignalProcessor.IsMaster) return;
            var satellite = RTCore.Instance.Satellites[SignalProcessor.VesselId];

            if (Vessel == FlightGlobals.ActiveVessel && InputAllowed && !satellite.HasLocalControl)
            {
                Enqueue(fcs);
            }

            if (!satellite.HasLocalControl)
            {
                PopFlightCtrl(fcs, satellite);
            }
        }