21class DtSetDestroyRequest;
22class DtSetRestoreRequest;
23class DtSetAltitudeRequest;
24class DtSetLocationRequest;
25class DtSetHeadingRequest;
27class DtBooleanInputPort;
28class DtAnalogInputPort;
38class HelicopterDynamics;
45class JoystickControlledBot;
88 DtVreRlActuator(
const DtString& name, DtLocalObject*
object, DtSimulationServices* simManager,
89 DtComponentDescriptor* compDescriptor, DtReaderWriterRegistry* parentRegistry);
106#if RTD_VRF_PLUGIN_VER >= 440
107 virtual const char*
type()
const override;
147 static DtSimComponent*
creator(
const DtString& name, DtLocalObject*
object, DtSimulationServices* simManager,
148 DtComponentDescriptor* compDescriptor, DtReaderWriterRegistry* parentRegistry);
203 DtVector& position, DtVector& velocity, DtVector& acceleration, DtTaitBryan& orientation, DtVector& rotVelocity);
228#if RTD_VRF_PLUGIN_VER >= 430
229 virtual void setRadio(DtSimRadio* radio)
override;
271#if RTD_VRF_PLUGIN_VER < 440
279 DtAnalogInputPort* myPedalPort;
282 DtConstrainedAnalogInputPort* myCollectivePort;
285 DtConstrainedDualAxisAnalogInputPort* myCyclicPort;
RotorLibCGF::HelicopterDynamics * myDynamics
Pointer to the real-time dynamics model.
Definition vreRlActuator.h:292
virtual void setRadio(DtSimBaseRadio *radio)
Sets the radio interface for this component.
virtual void tick() override
Performs per-frame processing.
DtReal myLastSpeed
Last recorded speed value.
Definition vreRlActuator.h:295
virtual void copyStateFromRTD(DtVector &position, DtVector &velocity, DtVector &acceleration, DtTaitBryan &orientation, DtVector &rotVelocity)
Copies state from RTD to provided parameters.
bool myPlayerControlled
Flag indicating whether the entity is player-controlled.
Definition vreRlActuator.h:289
virtual void processRadioMsg(DtSimMessage *msg)
Processes a radio message.
virtual void processSetRestore(DtSetRestoreRequest *req)
Processes a restore request.
void writeOutputData()
Writes output data to ports.
bool isPlayerControlled()
Checks if the entity is currently player-controlled.
DtBooleanInputPort * myJoystickEnabledPort
Input port for joystick enabled state.
Definition vreRlActuator.h:269
void synchronizeFuel()
Synchronizes RTD fuel with the configured VR-Forces resource.
virtual DtString type() const
Gets the component type.
virtual void setSpeed(DtReal speed)
Sets the aircraft speed.
virtual bool createPorts() override
Creates component ports.
virtual void checkAndClampAircraftOnGround(const DtVector &localPosition)
Checks and adjusts the aircraft position to keep it on the ground.
DtSimResource * fuelResource()
Returns the configured VR-Forces fuel resource, or nullptr when unavailable.
virtual bool init() override
Initializes the component.
makVre::MiniPID * myXPid
PID controller for X-axis stabilization.
Definition vreRlActuator.h:298
static DtSimComponent * creator(const DtString &name, DtLocalObject *object, DtSimulationServices *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Component factory function.
virtual void copyStateFromRTD()
Copies state from RTD to the state repository.
const DtVreRlParameters * getParameters()
Gets the rotary-wing parameters.
virtual void copyStateToRTD()
Copies state from the state repository to RTD.
float myPreviousLat
Previous latitude value for position tracking.
Definition vreRlActuator.h:304
void updateFuelExtendedData()
Publishes the fuel amount used by the frontend displays.
virtual void preFirstTickInit() override
Initializes the component before the first tick.
static void radioMsgCallback(DtSimMessage *msg, void *usr)
Static callback for radio messages.
DtRotaryWingEntityStateRepository * getStateRepository()
Gets the state repository.
void setStatePropThresholdingEnabled(bool enable)
Enables or disables state propagation thresholding.
vreRtd::RtdFuelSynchronizer myFuelSynchronizer
Synchronizes the RTD fuel tank with the VR-Forces fuel resource.
Definition vreRlActuator.h:310
DtVreRlActuator(const DtString &name, DtLocalObject *object, DtSimulationServices *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Constructor.
virtual void processSetLocation(DtSetLocationRequest *req)
Processes a location change request.
float myPreviousLon
Previous longitude value for position tracking.
Definition vreRlActuator.h:307
makVre::MiniPID * myYPid
PID controller for Y-axis stabilization.
Definition vreRlActuator.h:301
virtual void processSetHeading(DtSetHeadingRequest *req)
Processes a heading change request.
DtBooleanInputPort * myWheelBrakePort
Input port for wheel brake control (boolean version)
Definition vreRlActuator.h:273
virtual ~DtVreRlActuator() override
Virtual destructor.
Rotary-wing parameters for VREngage.
Definition vreRlParameters.h:38
Rotary-wing aircraft actuator with enhanced collision and crash handling.
Definition vreRotaryWingActuator.h:33
A compact PID (Proportional-Integral-Derivative) controller class.
Definition pid.h:33
Synchronizes RTD vehicle fuel with a VR-Forces fuel resource.
Definition vreRtdUtil.h:98
Definition vreRlActuator.h:42
const char TS_VREngageActuator[]
Type string for VREngage rotary-wing actuator component.
Definition vreRlActuator.h:52
Forward declarations for the RotorLibCGF namespace.
Definition vreRlActuator.h:37
!
Definition glsVreMessageUtil.h:50
Actuator for rotary-wing aircraft simulation.
Common definitions for the RTD backend library.
Utility functions for VREngage RTD components.