![]() |
VR-Forces 4.0.4 Class Documentation
|
DtMissileManeuverActComponent is a kinematics-based model of a missile system that converts steering acceleration inputs into orientation, acceleration, velocity, and position. More...

Public Member Functions | |
| DtMissileManeuverActComponent (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtMissileManeuverActComponent () |
| destructor | |
| virtual bool | init () |
| to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | tick () |
| Calculate new kinematic state. | |
| virtual DtVector | calculateAccelerationFromResistance () |
| Called after the missile has completed its burn to compute the deceleration (in local coordinates) due to air resistance. | |
| virtual void | updateRepository (const DtVector &position, const DtVector &velocity, const DtVector &acceleration, const DtTaitBryan &orientation) |
| Updates state repository with newly calculated values. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| virtual bool | createPortGroups () |
| Creates the local port groups. | |
| virtual bool | createPorts () |
| Creates the input ports and adds them to the component. | |
| virtual bool | createPSR () |
| Creates myProcessState data member, and adds it to our process state repository manager. | |
| DtMissileManeuverActComponent () | |
| default constructor; not implemented | |
| DtMissileManeuverActComponent (const DtMissileManeuverActComponent &orig) | |
| copy constructor; not implemented | |
| const DtMissileManeuverActComponent & | operator= (const DtMissileManeuverActComponent &orig) |
| assignment operator; not implemented | |
Protected Attributes | |
| DtMissileStateRepository * | myMissileState |
| DtMissileFlightPSR * | myProcessState |
| Container for state data associated with this component. | |
Ports and Port Groups | |
| DtInputPortGroup * | myMissileControlPortGroup |
| Input Port Group Name: missile-control Input Port Group Description: | |
| DtConstrainedAnalogInputPort * | myThrustPort |
| Input Port Name: thrust Input Port Description: Input Port Range: 0. | |
| DtConstrainedAnalogInputPort * | myManeuverAccelXPort |
| Input Port Name: maneuver-accel-x Input Port Description: Input Port Range: -100000. | |
| DtConstrainedAnalogInputPort * | myManeuverAccelYPort |
| Input Port Name: maneuver-accel-y Input Port Description: Input Port Range: -100000. | |
| DtConstrainedAnalogInputPort * | myManeuverAccelZPort |
| Input Port Name: maneuver-accel-z Input Port Description: Input Port Range: -100000. | |
| DtBooleanInputPort * | mySelfDestructPort |
| Input Port Name: self-destruct Input Port Description: Input Port Range: Input Port Default Value: Input Group Parent: missile-control. | |
DtMissileManeuverActComponent is a kinematics-based model of a missile system that converts steering acceleration inputs into orientation, acceleration, velocity, and position.
Uses Descriptor Type: DtComponentDescriptor
| DtMissileManeuverActComponent::DtMissileManeuverActComponent | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtMissileManeuverActComponent::~DtMissileManeuverActComponent | ( | ) | [virtual] |
destructor
| DtMissileManeuverActComponent::DtMissileManeuverActComponent | ( | ) | [protected] |
default constructor; not implemented
| DtMissileManeuverActComponent::DtMissileManeuverActComponent | ( | const DtMissileManeuverActComponent & | orig | ) | [protected] |
copy constructor; not implemented
| virtual bool DtMissileManeuverActComponent::init | ( | ) | [virtual] |
to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.
Calls createPSR(), to create our myProcessSR member, which holds the checkpointable data associated with the process of flight.
Reimplemented from DtActuatorComponent.
| virtual DtString DtMissileManeuverActComponent::type | ( | ) | const [virtual] |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtSimComponent.
| virtual void DtMissileManeuverActComponent::tick | ( | ) | [virtual] |
Calculate new kinematic state.
Reimplemented from DtSimComponent.
| virtual DtVector DtMissileManeuverActComponent::calculateAccelerationFromResistance | ( | ) | [virtual] |
Called after the missile has completed its burn to compute the deceleration (in local coordinates) due to air resistance.
| virtual void DtMissileManeuverActComponent::updateRepository | ( | const DtVector & | position, |
| const DtVector & | velocity, | ||
| const DtVector & | acceleration, | ||
| const DtTaitBryan & | orientation | ||
| ) | [virtual] |
Updates state repository with newly calculated values.
| static DtSimComponent* DtMissileManeuverActComponent::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual bool DtMissileManeuverActComponent::createPortGroups | ( | ) | [protected, virtual] |
Creates the local port groups.
Reimplemented from DtSimComponent.
| virtual bool DtMissileManeuverActComponent::createPorts | ( | ) | [protected, virtual] |
Creates the input ports and adds them to the component.
Reimplemented from DtSimComponent.
| virtual bool DtMissileManeuverActComponent::createPSR | ( | ) | [protected, virtual] |
Creates myProcessState data member, and adds it to our process state repository manager.
Passes in the name and type specified in the component descriptor (if they exist) to the DtVrfProcessStateRepository::createRepository factory method. If name and/or type is not specified, uses the appropriate default strings defined in procSRTypes.h.
| const DtMissileManeuverActComponent& DtMissileManeuverActComponent::operator= | ( | const DtMissileManeuverActComponent & | orig | ) | [protected] |
assignment operator; not implemented
Input Port Group Name: missile-control
Input Port Group Description:
Input Port Name: thrust
Input Port Description:
Input Port Range: 0.
to 1.
Input Port Default Value:
Input Group Parent: missile-control
Input Port Name: maneuver-accel-x
Input Port Description:
Input Port Range: -100000.
to 100000.
Input Port Default Value:
Input Group Parent: missile-control
Input Port Name: maneuver-accel-y
Input Port Description:
Input Port Range: -100000.
to 100000.
Input Port Default Value:
Input Group Parent: missile-control
Input Port Name: maneuver-accel-z
Input Port Description:
Input Port Range: -100000.
to 100000.
Input Port Default Value:
Input Group Parent: missile-control
Input Port Name: self-destruct
Input Port Description:
Input Port Range:
Input Port Default Value:
Input Group Parent: missile-control.
Container for state data associated with this component.
This state is saved and restored as part of a scenario (or checkpoint).