IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
IMS_Autopilot_Base Class Referenceabstract
Inheritance diagram for IMS_Autopilot_Base:
IMS_Autopilot_Killrot

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.
 

Detailed Description

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.

Member Function Documentation

virtual void IMS_Autopilot_Base::PreStep ( double  simdt)
pure virtual

Called by IMS2 every frame. Use to manage autopilot state and call operations.

Parameters
simdtSimtime elapsed since the last frame;

Implemented in IMS_Autopilot_Killrot.

virtual void IMS_Autopilot_Base::SetActive ( bool  active)
inlinevirtual

Engages or disengages the autopilot.

Parameters
activeIf true, the AP will be engaged, if false disengaged.

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