Struct PntosCommonInitializationStrategy
Defined in File initialization.h
Struct Documentation
-
struct PntosCommonInitializationStrategy
A common base type for initialization algorithms.
UNSTABLE: This feature is unstable and is not yet considered part of the stable pntOS API. Usage of this feature is highly discouraged in non-experimental code, and its definition may change at any time.
Public Members
-
PntosManagedMemory *memory
-
PntosInitializationType type
The type of initialization strategy this struct can be downcast to. For example, if this field is
PNTOS_INERTIAL_INITIALIZATION_STRATEGY, then this struct is actually a PntosInertialInitializationStrategy.
-
PntosInitializationMotionNeeded (*request_motion_needed)(struct PntosCommonInitializationStrategy *self)
- Return
The type of motion (if any) needed.
-
PntosInitializationStatus (*request_current_status)(struct PntosCommonInitializationStrategy *self)
- Return
The current initialization status.
-
void (*process_pntos_message)(struct PntosCommonInitializationStrategy *self, PntosMessage *message)
- Param message
A new message to be incorporated into the initialization algorithm and return the initialization state.
-
PntosManagedMemory *memory