Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions
Script2Game::AutopilotClass Class Reference

Binding of RoR::Autopilot. More...

#include <AutopilotClass.h>

Public Member Functions

void disconnect ()
 Disconnects the autopilot.
 
APHeadingMode toggleHeading (APHeadingMode headingMode)
 Sets or toggles the heading modes.
 
APAltitudeMode toggleAltitude (APAltitudeMode altitudeMode)
 Sets or toggles the altitude modes.
 
bool toggleIAS ()
 Toggles the auto-throttle.
 
bool toggleGPWS ()
 Toggles the ground proximity warning system (GPWS).
 
int adjustHeading (int addedHeading)
 Adds addedHeading to the current heading.
 
int adjustAltitude (int addedAltitude)
 Adds addedAltitude to the current altitude.
 
int adjustVerticalSpeed (int addedVS)
 Adds addedVS to the current vertical speed.
 
int adjustIAS (int addedIAS)
 Adds addedIAS to the current airspeed reference for the auto-throttle.
 
float getVerticalApproachDeviation ()
 
float getHorizontalApproachDeviation ()
 
bool isILSAvailable ()
 
APHeadingMode getHeadingMode ()
 
int getHeadingValue ()
 
APAltitudeMode getAltitudeMode ()
 
int getAltitudeValue ()
 
bool getIASMode ()
 
int getIASValue ()
 
bool getGPWSMode ()
 
int getVerticalSpeedValue ()
 

Detailed Description

Binding of RoR::Autopilot.

Controls the autopilot system.

Note
Obtain the object using BeamClass.getAutopilot().

Definition at line 15 of file AutopilotClass.h.

Member Function Documentation

◆ adjustAltitude()

int Script2Game::AutopilotClass::adjustAltitude ( int  addedAltitude)

Adds addedAltitude to the current altitude.

Parameters
addedAltitudeThe altitude (in feet) that will be added to the current altitude. Use negative numbers to subtract.

◆ adjustHeading()

int Script2Game::AutopilotClass::adjustHeading ( int  addedHeading)

Adds addedHeading to the current heading.

Parameters
addedHeadingThe heading (in degrees) that will be added to the current heading. Use negative numbers to subtract.

◆ adjustIAS()

int Script2Game::AutopilotClass::adjustIAS ( int  addedIAS)

Adds addedIAS to the current airspeed reference for the auto-throttle.

Parameters
addedVSThe airspeed (in knots) that will be added to the current airspeed reference. Use negative numbers to subtract.

◆ adjustVerticalSpeed()

int Script2Game::AutopilotClass::adjustVerticalSpeed ( int  addedVS)

Adds addedVS to the current vertical speed.

Parameters
addedVSThe vertical speed (in feet per minute) that will be added to the current vertical speed. Use negative numbers to subtract.

◆ disconnect()

void Script2Game::AutopilotClass::disconnect ( )

Disconnects the autopilot.

◆ getAltitudeMode()

APAltitudeMode Script2Game::AutopilotClass::getAltitudeMode ( )
Returns
The current altitude mode.

◆ getAltitudeValue()

int Script2Game::AutopilotClass::getAltitudeValue ( )
Returns
The current altitude value (in feet).

◆ getGPWSMode()

bool Script2Game::AutopilotClass::getGPWSMode ( )
Returns
Whether the GPWS is enabled.

◆ getHeadingMode()

APHeadingMode Script2Game::AutopilotClass::getHeadingMode ( )
Returns
The current heading mode.

◆ getHeadingValue()

int Script2Game::AutopilotClass::getHeadingValue ( )
Returns
The current heading value (in degrees).

◆ getHorizontalApproachDeviation()

float Script2Game::AutopilotClass::getHorizontalApproachDeviation ( )
Returns
The deviation (in degrees) from the ILS localizer, if available.
Note
Use isILSAvailable() to check if this value is available.

◆ getIASMode()

bool Script2Game::AutopilotClass::getIASMode ( )
Returns
Whether the auto-throttle is enabled.

◆ getIASValue()

int Script2Game::AutopilotClass::getIASValue ( )
Returns
The current airspeed reference for the auto-throttle (in knots).

◆ getVerticalApproachDeviation()

float Script2Game::AutopilotClass::getVerticalApproachDeviation ( )
Returns
The deviation (in degrees) from the ILS glideslope, if available.
Note
Use isILSAvailable() to check if this value is available.

◆ getVerticalSpeedValue()

int Script2Game::AutopilotClass::getVerticalSpeedValue ( )
Returns
The current vertical speed value (in feet per minute).

◆ isILSAvailable()

bool Script2Game::AutopilotClass::isILSAvailable ( )
Returns
Whether the ILS is available.

◆ toggleAltitude()

APAltitudeMode Script2Game::AutopilotClass::toggleAltitude ( APAltitudeMode  altitudeMode)

Sets or toggles the altitude modes.

Parameters
altitudeModeThe altitude mode. If the autopilot is in the same mode as altitudeMode, it toggles it. Otherwise, it sets the new mode.
Returns
The new altitude mode.

◆ toggleGPWS()

bool Script2Game::AutopilotClass::toggleGPWS ( )

Toggles the ground proximity warning system (GPWS).

◆ toggleHeading()

APHeadingMode Script2Game::AutopilotClass::toggleHeading ( APHeadingMode  headingMode)

Sets or toggles the heading modes.

Parameters
headingModeThe heading mode. If the autopilot is in the same mode as headingMode, it toggles it. Otherwise, it sets the new mode.
Returns
The new heading mode.

◆ toggleIAS()

bool Script2Game::AutopilotClass::toggleIAS ( )

Toggles the auto-throttle.

The auto-throttle keeps a constant speed set by adjustIAS(int addedIAS)


The documentation for this class was generated from the following file: