|
IMS2
Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
|
Public Member Functions | |
| IMS_Autopilot_Base (IMS2 *vessel) | |
| virtual void | SetActive (bool active) |
| Engages or disengages the autopilot. More... | |
| virtual void | PreStep (double simdt)=0 |
| Called by IMS2 every frame. Use to manage autopilot state and call operations. More... | |
Protected Attributes | |
| bool | running = false |
| IMS2 * | vessel |
| map< int, IMS_AutopilotOperation_Base * > | operations |
| Used to store an instance of all operation this autopilot uses. | |
Base class for autopilot implementations, whether that be stock AP overrides or advanced custom autopilots.
In order to add a new autopilot, inherit this class, define a new AP_MODE and include your header in autopilot_includes.h, and add the autopilot instance in the constructor of IMS2.
|
pure virtual |
Called by IMS2 every frame. Use to manage autopilot state and call operations.
| simdt | Simtime elapsed since the last frame; |
Implemented in IMS_Autopilot_Killrot.
|
inlinevirtual |
Engages or disengages the autopilot.
| active | If true, the AP will be engaged, if false disengaged. |