Binding of RoR::Autopilot.
More...
#include <AutopilotClass.h>
Binding of RoR::Autopilot.
Controls the autopilot system.
- Note
- Obtain the object using
BeamClass.getAutopilot().
Definition at line 15 of file AutopilotClass.h.
◆ adjustAltitude()
| int Script2Game::AutopilotClass::adjustAltitude |
( |
int |
addedAltitude | ) |
|
Adds addedAltitude to the current altitude.
- Parameters
-
| addedAltitude | The 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
-
| addedHeading | The 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
-
| addedVS | The 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
-
| addedVS | The 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()
- 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()
Sets or toggles the altitude modes.
- Parameters
-
| altitudeMode | The 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
-
| headingMode | The 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 |
( |
| ) |
|
The documentation for this class was generated from the following file: