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; }
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; }