|
VR-Engage
2.3
|
Phase 2 introduces a lightweight in-house quadcopter dynamics path for Vesper-only rollout while preserving the same external actuator contract.
#include <vreQuadCopterActuator.h>
Public Member Functions | |
| DtVreQuadCopterActuator (const DtString &name, DtLocalObject *object, DtSimulationServices *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry) | |
| virtual | ~DtVreQuadCopterActuator () override |
| virtual const char * | type () const override |
| virtual bool | createPorts () override |
| virtual bool | init () override |
| virtual void | preFirstTickInit () override |
| virtual void | tick () override |
Public Member Functions inherited from makVre::DtVreRotaryWingActuatorComponent | |
| DtVreRotaryWingActuatorComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreRotaryWingActuatorComponent () override |
Public Member Functions inherited from makVre::DtVreSimComponent< DtRotaryWingActuatorComponent > | |
| DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreSimComponent () |
| bool | isPlayerControlled (const std::string &role="") const |
| std::vector< std::string > | controllingStations (const std::string &role) const |
| std::vector< std::string > | engagedRoles () const |
| DtString | entitySystemName () const |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *object, DtSimulationServices *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry) |
Static Public Member Functions inherited from makVre::DtVreRotaryWingActuatorComponent | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
Protected Member Functions | |
| virtual double | calculateFuel () const |
| virtual void | setSpeed (DtReal speed) |
| virtual void | checkAndClampAircraftOnGround (const DtVector &localPosition) |
Protected Member Functions inherited from makVre::DtVreRotaryWingActuatorComponent | |
| virtual void | sendDetonation (const DtVector &geocentricLocation) override |
| virtual void | checkLandedOrCrashed () override |
Private Member Functions | |
| void | applyStateToUpdateRepositoryPorts () |
| void | initializeQuadStateFromEntity () |
| void | integrateQuadStep (double dtSeconds, double cyclicPitch, double cyclicRoll, double pedal, double collective) |
| void | registerMunitionResourceCallbacks () |
| void | unregisterMunitionResourceCallbacks () |
| void | recalculatePayloadEffects () |
| void | processSetRestore () |
Static Private Member Functions | |
| static void | onMunitionResourceChanged (DtSimResource *resource, void *userData) |
| static void | setRestoreCallback (DtSimMessage *msg, void *userData) |
Private Attributes | |
| DtVector | myQuadWorldPosition |
| DtVector | myQuadWorldVelocity |
| DtVector | myQuadWorldAcceleration |
| DtTaitBryan | myQuadLocalOrientation |
| DtTaitBryan | myQuadWorldOrientation |
| DtVector | myQuadWorldRotVelocity |
| DtReal | myCurrentYawRate |
| MiniPID * | myForwardStopPid |
| MiniPID * | myRightStopPid |
| DtBooleanInputPort * | myJoystickEnabledPort |
| bool | myQuadInitialized |
| bool | myPlayerControlled |
| DtReal | myLocalVerticalVelocity |
| DtReal | myMaxTiltRad |
| DtReal | myHorizontalAcceleration |
| DtReal | myMaxHorizontalSpeed |
| DtReal | myMaxAscendRate |
| DtReal | myMaxDescendRate |
| DtReal | myMaxYawRate |
| DtReal | myAttitudeResponsiveness |
| DtReal | myVerticalResponsiveness |
| DtReal | myTakeoffVerticalVelocityThreshold |
| DtReal | myEffectiveMaxAscendRate |
| DtReal | myEffectiveMaxTiltRad |
| DtReal | myEffectiveAttitudeResponsiveness |
| DtReal | myEffectiveVerticalResponsiveness |
| DtReal | myEffectiveFlightTimeMinutes |
| std::vector< DtSimResource * > | myRegisteredMunitionResources |
| makVre::DtVreQuadCopterActuator::DtVreQuadCopterActuator | ( | const DtString & | name, |
| DtLocalObject * | object, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | compDescriptor, | ||
| DtReaderWriterRegistry * | parentRegistry ) |
|
overridevirtual |
|
static |
|
overridevirtual |
Gets the type identifier for this component.
Implements the DtSimComponent::type() method to return the type identifier for this component.
Reimplemented from makVre::DtVreRotaryWingActuatorComponent.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Advances controlled flight, or the base rotary-wing falling path when fuel is exhausted.
Empty-fuel behavior runs regardless of player or autopilot control. Restoring fuel causes the custom flight state to be reinitialized when manual control resumes.
Reimplemented from makVre::DtVreRotaryWingActuatorComponent.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |