![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Binding of RoR::Autopilot.
Controls the autopilot system.
BeamClass.getAutopilot(). Definition at line 15 of file AutopilotClass.h.
Public Member Functions | |
| void | disconnect () |
| bool | getForceDisabled () |
| void | setForceDisabled (bool disabled) |
| APHeadingMode | toggleHeading (APHeadingMode headingMode) |
| APAltitudeMode | toggleAltitude (APAltitudeMode altitudeMode) |
| bool | toggleIAS () |
| bool | toggleGPWS () |
| int | adjustHeading (int addedHeading) |
| int | adjustAltitude (int addedAltitude) |
| int | adjustVerticalSpeed (int addedVS) |
| int | adjustIAS (int addedIAS) |
| float | getVerticalApproachDeviation () |
| float | getHorizontalApproachDeviation () |
| bool | isILSAvailable () |
| APHeadingMode | getHeadingMode () |
| int | getHeadingValue () |
| APAltitudeMode | getAltitudeMode () |
| int | getAltitudeValue () |
| bool | getIASMode () |
| int | getIASValue () |
| bool | getGPWSMode () |
| int | getVerticalSpeedValue () |
| int Script2Game::AutopilotClass::adjustAltitude | ( | int | addedAltitude | ) |
Adds addedAltitude to the current altitude.
| addedAltitude | The altitude (in feet) that will be added to the current altitude. Use negative numbers to subtract. |
| int Script2Game::AutopilotClass::adjustHeading | ( | int | addedHeading | ) |
Adds addedHeading to the current heading.
| addedHeading | The heading (in degrees) that will be added to the current heading. Use negative numbers to subtract. |
| int Script2Game::AutopilotClass::adjustIAS | ( | int | addedIAS | ) |
Adds addedIAS to the current airspeed reference for the auto-throttle.
| addedIAS | The airspeed (in knots) that will be added to the current airspeed reference. Use negative numbers to subtract. |
| int Script2Game::AutopilotClass::adjustVerticalSpeed | ( | int | addedVS | ) |
Adds addedVS to the current vertical speed.
| addedVS | The vertical speed (in feet per minute) that will be added to the current vertical speed. Use negative numbers to subtract. |
| void Script2Game::AutopilotClass::disconnect | ( | ) |
Disconnects the autopilot.
| APAltitudeMode Script2Game::AutopilotClass::getAltitudeMode | ( | ) |
Gets the current altitude mode.
| int Script2Game::AutopilotClass::getAltitudeValue | ( | ) |
Gets the current altitude value.
| bool Script2Game::AutopilotClass::getForceDisabled | ( | ) |
Returns whether the autopilot has been disabled forcefully.
| bool Script2Game::AutopilotClass::getGPWSMode | ( | ) |
Returns whether the GPWS is engaged.
true if the GPWS is engaged, false otherwise. | APHeadingMode Script2Game::AutopilotClass::getHeadingMode | ( | ) |
Gets the current heading mode.
| int Script2Game::AutopilotClass::getHeadingValue | ( | ) |
Gets the current heading value.
| float Script2Game::AutopilotClass::getHorizontalApproachDeviation | ( | ) |
Returns the deviation (in degrees) from the ILS localizer, if available.
isILSAvailable() to check if this value is available. | bool Script2Game::AutopilotClass::getIASMode | ( | ) |
Returns whether the auto-throttle is engaged.
true if the auto-throttle is engaged, false otherwise. | int Script2Game::AutopilotClass::getIASValue | ( | ) |
Gets the current airspeed reference for the auto-throttle.
| float Script2Game::AutopilotClass::getVerticalApproachDeviation | ( | ) |
Returns the deviation (in degrees) from the ILS glideslope, if available.
isILSAvailable() to check if this value is available. | int Script2Game::AutopilotClass::getVerticalSpeedValue | ( | ) |
Gets the current vertical speed value.
| bool Script2Game::AutopilotClass::isILSAvailable | ( | ) |
Returns whether the ILS is available.
true if the ILS information is available, false otherwise. | void Script2Game::AutopilotClass::setForceDisabled | ( | bool | disabled | ) |
Forces the autopilot to be enabled/disabled.
When true, this prevents the default A/P from controlling the aircraft and disables the default logic (such as the A/P disengaging when NAV is engaged and ILS is not available).
This is useful for replacing the default autopilot logic with your own. It allows you to use all the settings and operate the controls without conflicts from the default autopilot.
| APAltitudeMode Script2Game::AutopilotClass::toggleAltitude | ( | APAltitudeMode | altitudeMode | ) |
Sets or toggles the altitude modes.
| altitudeMode | The altitude mode. If the autopilot is in the same mode as altitudeMode, it toggles it. Otherwise, it sets the new mode. |
| bool Script2Game::AutopilotClass::toggleGPWS | ( | ) |
Toggles the ground proximity warning system (GPWS).
| APHeadingMode Script2Game::AutopilotClass::toggleHeading | ( | APHeadingMode | headingMode | ) |
Sets or toggles the heading modes.
| headingMode | The heading mode. If the autopilot is in the same mode as headingMode, it toggles it. Otherwise, it sets the new mode. |
| bool Script2Game::AutopilotClass::toggleIAS | ( | ) |
Toggles the auto-throttle.
The auto-throttle keeps a constant speed set by adjustIAS(int addedIAS)