Property | Type | Description | |
---|---|---|---|
LastTarget | RemoteTech.FlightComputer.Commands.TargetCommand | ||
OnActiveCommandAbort | System.Action | ||
OnNewCommandPop | System.Action | ||
Tf | double | ||
TfMax | double | ||
TfMin | double | ||
kdFactor | double | ||
kiFactor | double | ||
kpFactor | double |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Called when the flight computer is disposed. This happens when the ModuleSPU is destroyed.
|
|
Enqueue ( ICommand cmd, bool ignoreControl = false, bool ignoreDelay = false, bool ignoreExtra = false ) : void |
Enqueue a command in the flight computer command queue.
|
|
FlightComputer ( ISignalProcessor s ) : System |
Flight Computer constructor.
|
|
HasManeuverCommandByNode ( ManeuverNode node ) : bool |
Looks for the passed node on the command queue and returns true if the node is already on the list.
|
|
HasManeuverCommands ( ) : bool |
Returns true if there's a least one ManeuverCommand on the queue.
|
|
Load ( |
Restores the flight computer from the persistent save.
|
|
OnFixedUpdate ( ) : void |
Called by the ModuleSPU.OnFixedUpdate method during the "Physics" engine phase.
|
|
OnUpdate ( ) : void |
Called by the ModuleSPU.Update method during the Update() "Game Logic" engine phase. This checks if there are any commands that can be removed from the FC queue if their delay has elapsed. |
|
OnVesselChange ( Vessel vessel ) : void |
After switching the vessel hide the current flight computer UI.
|
|
OrderCommandList ( ) : void |
Orders the command queue to be chronological.
|
|
Remove ( ICommand cmd ) : void |
Remove a command from the flight computer command queue.
|
|
RemoveManeuverCommandByNode ( ManeuverNode node ) : void |
Triggers a CancelCommand for the given node
|
|
Reset ( ) : void |
Abort all active commands.
|
|
Save ( |
Saves all values for the flight computer to the persistent.
|
|
setPIDParameters ( ) : void | ||
updatePIDParameters ( ) : void |
Method | Description | |
---|---|---|
Enqueue ( FlightCtrlState fs ) : void |
Enqueue a FlightCtrlState to the flight control queue.
|
|
OnFlyByWirePost ( FlightCtrlState fcs ) : void |
Control the flight. Called after the Vessel.OnFlyByWire method.
|
|
OnFlyByWirePre ( FlightCtrlState fcs ) : void |
Control the flight. Called before the Vessel.OnFlyByWire method.
|
|
OnSceneSwitchRequested ( GameScenes>.GameEvents |
Called when a game switch is requested: close the current computer.
|
|
OnVesselSwitching ( Vessel fromVessel, Vessel toVessel ) : void |
Called when there's a vessel switch, switching from `fromVessel` to `toVessel`.
|
|
PopCommand ( ) : void |
Check whether there are commands that can be removed from the flight computer command queue (when their delay time has elapsed). This is done during the Update() phase of the game engine. OnUpdate method. |
|
PopFlightCtrl ( FlightCtrlState fcs, ISatellite sat ) : void |
Remove a FlightCtrlState from the flight control queue.
|
|
UpdateLastTarget ( ) : void |
Updates the last target command used by the flight computer.
|
public Enqueue ( ICommand cmd, bool ignoreControl = false, bool ignoreDelay = false, bool ignoreExtra = false ) : void | ||
cmd | ICommand | The command to be enqueued. |
ignoreControl | bool | If true the command is not enqueued. |
ignoreDelay | bool | If true, the command is executed immediately, otherwise the light speed delay is applied. |
ignoreExtra | bool | If true, the command is executed without manual delay (if any). The normal light speed delay still applies. |
return | void |
public FlightComputer ( ISignalProcessor s ) : System | ||
s | ISignalProcessor | A signal processor (most probably a |
return | System |
public HasManeuverCommandByNode ( ManeuverNode node ) : bool | ||
node | ManeuverNode | Node to search in the queued commands |
return | bool |
public Load ( |
||
configNode | Node with the informations for the flight computer | |
return | void |
public OnVesselChange ( Vessel vessel ) : void | ||
vessel | Vessel | The **new** vessel we are changing to. |
return | void |
public Remove ( ICommand cmd ) : void | ||
cmd | ICommand | The command to be removed from the command queue. |
return | void |
public RemoveManeuverCommandByNode ( ManeuverNode node ) : void | ||
node | ManeuverNode | Node to cancel from the queue |
return | void |
public Save ( |
||
n | Node to save in | |
return | void |
public TargetCommand,RemoteTech.FlightComputer.Commands LastTarget | ||
return | RemoteTech.FlightComputer.Commands.TargetCommand |
public Action,System OnActiveCommandAbort | ||
return | System.Action |