17#include <matrix/vlVector.h>
74constexpr const char*
useRTD =
"useRTD";
105 virtual void tick(
double dt)
override;
112 virtual const char*
type()
const override;
120 const std::string& functionGroup,
const std::string& function,
double val,
double delay = 0);
194 virtual void setAutopilot(
const std::string& newMode,
bool stayDisabledIfOff =
false);
385 const std::string& key,
const std::string& soundFile,
double pitch,
double volume,
bool repeatSound);
DtEntityControlLogic()
Constructor.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtVreMessageResult handleSetRwrSoundsEnabledMessage(DtVreMessage *msg)
Handles RWR sounds enabled messages.
virtual void gimbalTrackDesignatedRadarTrack()
Commands the gimbal sensor to track a radar-detected entity.
virtual bool isLandingGearDown()
Checks if the landing gear is down.
virtual void openSlingLoadDoor()
Opens the sling load door.
virtual void setAutopilotAltitude(const std::string &value)
Sets the autopilot altitude extended data.
virtual void closeSlingLoadDoor()
Closes the sling load door.
virtual void toggleObserverAttachMode(double val)
Toggles between first-person and third-person view modes.
bool myUseRTD
Flag indicating if real-time dynamics are enabled.
Definition pilotSimLogic.h:406
std::string myGimbalWindowName
Name of the window containing the gimbal display.
Definition pilotSimLogic.h:449
virtual void requestSarImage()
Requests a Synthetic Aperture Radar (SAR) image.
bool myHelo
Flag indicating if the aircraft is a helicopter.
Definition pilotSimLogic.h:434
std::vector< std::string > myGimbalSensorModes
Vector of available gimbal sensor modes.
Definition pilotSimLogic.h:465
virtual void openCargoDoor()
Opens the cargo door.
virtual void gimbalTrackMgrsCoord(const std::string &mgrsCoord)
Commands the gimbal sensor to track an MGRS coordinate.
virtual void cycleGimbalSensorMode()
Cycles to the next gimbal sensor mode.
virtual const char * type() const override
Returns the component type identifier.
virtual void gimbalTrackLaserCode(int laserCode, bool continuousTrack)
Commands the gimbal sensor to track a laser code.
makVrv::DtObserver * myObserver
Pointer to the observer for getting position and orientation.
Definition pilotSimLogic.h:470
DtVector myAttachOffset
Offset vector for observer attachment.
Definition pilotSimLogic.h:418
virtual DtVreMessageResult handleRwrPlaySound(DtVreMessage *msg)
Handles RWR play sound messages.
std::string mySensorName
Name of the current sensor.
Definition pilotSimLogic.h:455
DtPilotInstrumentsInputLogic * myInstrumentsInputLogic
Pointer to the instruments input logic component.
Definition pilotSimLogic.h:412
virtual bool isHelo()
Checks if the aircraft is a helicopter.
Definition pilotSimLogic.h:136
virtual void setAutopilotMode(const std::string &value)
Sets the autopilot mode extended data.
std::string myGimbalChannelName
Name of the channel containing the gimbal display.
Definition pilotSimLogic.h:452
virtual bool isCargoDoorOpen()
Checks if the cargo door is open.
std::map< std::string, makAudio::DtSound * > myRwrSoundMap
Map of RWR sounds indexed by sound key.
Definition pilotSimLogic.h:426
virtual void setFlap(int flap)
Sets the flap position.
virtual DtVreMessageResult handleCycleSelectedWeaponMessage(DtVreMessage *msg)
Handles cycle selected weapon messages.
virtual void tick(double dt) override
Updates simulation state for the current frame.
virtual DtVreMessageResult handleDesignatedTargetsUpdate(DtVreMessage *msg)
Handles designated targets update messages.
virtual DtVreMessageResult handleWindowCreated(DtVreMessage *msg)
Handles window created messages.
DtEntityIdentifier myDesginatedRadarTarget
Entity identifier of the currently designated radar target.
Definition pilotSimLogic.h:473
virtual CmLaunchParameters countermeasuresLaunchParameters(const std::string &countermeasuresName)
Gets the launch parameters for a specific countermeasure type.
virtual void openSlidingDoor()
Opens the sliding door.
DtFlightControlsInputLogic * myFlightControlsInputLogic
Pointer to the flight controls input logic component.
Definition pilotSimLogic.h:409
virtual DtFlightControlsInputLogic & flightControls()
Gets a reference to the flight controls input logic.
virtual void setLaserCode(int val)
Sets the laser designator code.
virtual ~DtPilotSimLogic() override
Virtual destructor.
virtual DtVreMessageResult handleEntityStateStringMessage(DtVreMessage *msg)
Handles entity state string messages.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the pilot simulation logic component.
virtual bool isSlidingDoorOpen()
Checks if the sliding door is open.
std::string myCachedAutopilotMode
Previously set autopilot mode.
Definition pilotSimLogic.h:437
virtual DtVreMessageResult handleSimState(DtVreMessage *msg) override
Handles simulation state messages.
virtual void toggleNorthReference(double val)
Toggles between true north and magnetic north reference.
virtual bool isSlingLoadDoorOpen()
Checks if the sling load door is open.
virtual void closeCargoDoor()
Closes the cargo door.
virtual void clearTrackingLocation()
Clears the cached location the gimbaled sensor is pointing at.
virtual DtPilotInstrumentsInputLogic & instrumentControls()
Gets a reference to the instrument controls input logic.
virtual void toggleAutopilot()
Toggles the autopilot on/off.
double myWarningsSuppressed
Time remaining for warning suppression in seconds.
Definition pilotSimLogic.h:446
virtual void setAutopilotSpeed(const std::string &value)
Sets the autopilot speed extended data.
virtual DtVreMessageResult handleCockpitInitialized(DtVreMessage *msg)
Handles cockpit initialized messages.
virtual void sendJoystickMessage(const std::string &functionGroup, const std::string &function, double val, double delay=0)
Sends a joystick control message to the simulation.
virtual void setAutopilot(const std::string &newMode, bool stayDisabledIfOff=false)
Sets the autopilot mode.
int myAttachType
Current observer attachment type.
Definition pilotSimLogic.h:415
DtInitTable myRwrConfig
Cached RWR configuration table.
Definition pilotSimLogic.h:431
virtual void setAutopilotRoute(const std::string &value)
Sets the autopilot route extended data.
virtual void stopRwrSounds()
Stops all currently playing RWR sounds.
virtual void suppressWarnings()
Suppresses warning messages temporarily.
virtual void playRwrSound(const std::string &key)
Plays a specific RWR sound.
double myStallThreshold
Airspeed threshold for stall warnings in meters per second.
Definition pilotSimLogic.h:443
virtual DtVreMessageResult handleRwrCatalogRequest(DtVreMessage *msg)
Handles RWR catalog request messages.
std::map< std::string, CmLaunchParameters > myCmLaunchParameters
Map of countermeasures launch parameters indexed by name.
Definition pilotSimLogic.h:476
virtual void trigger(double val)
Handles joystick trigger input.
virtual void stopLasingLocation()
Stops the laser designator.
virtual bool useRTD()
Checks if real-time dynamics are enabled.
DtPilotSimLogic()
Default constructor.
virtual void startLasingLocation()
Starts the laser designator.
DtTaitBryan myAttachOrientation
Orientation for observer attachment.
Definition pilotSimLogic.h:421
virtual void resetInPlace(float val=1) override
Resets the aircraft in its current location.
virtual void addRwrSound(const std::string &key, const std::string &soundFile, double pitch, double volume, bool repeatSound)
Adds a sound to the RWR sound system.
virtual DtVreMessageResult handleGimbalCycleSensorModeMessage(DtVreMessage *msg)
Handles gimbal cycle sensor mode messages.
virtual DtVreMessageResult handleToggleAutoCountermeasuresMessage(DtVreMessage *msg)
Handles toggle auto countermeasures messages.
virtual void closeSlidingDoor()
Closes the sliding door.
virtual void setBullseye(const DtEntityIdentifier &target)
Sets the target as the bullseye reference point.
double myLowAltitudeThreshold
Altitude threshold for low altitude warnings in meters.
Definition pilotSimLogic.h:440
virtual void shutdown() override
Cleans up resources when the component is being shut down.
virtual void toggleLasingState()
Toggles the laser designator on/off.
virtual void setAutopilotHeading(const std::string &value)
Sets the autopilot heading extended data.
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Provides coordinate conversion functionality between different coordinate systems.
Defines the logic for controlling entities in VR-Engage.
Defines helper utilities for working with entities in VR-Engage.
constexpr const char * sensorName
Definition pilotSimLogic.h:65
constexpr const char * useHelicopterControls
Definition pilotSimLogic.h:71
constexpr const char * stallThreshold
Definition pilotSimLogic.h:68
constexpr const char * useRTD
Definition pilotSimLogic.h:74
constexpr const char * rwrConfig
Definition pilotSimLogic.h:62
constexpr const char * lowAltitudeThreshold
Definition pilotSimLogic.h:59
Defines export/import macros for the Pilot Frontend library.
#define PILOT_DLL
Definition export.h:19
Component configuration and usage details.
Definition audioUpdater.h:21
Definition pilotSimLogic.h:51
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtPilotSimLogicType
Type identifier for DtPilotSimLogic component.
Definition pilotSimLogic.h:80
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Structure containing countermeasures launch parameters.
Definition pilotSimLogic.h:265
int numToFire
Number of countermeasures to fire.
Definition pilotSimLogic.h:267
double fireInterval
Time interval between successive launches in seconds.
Definition pilotSimLogic.h:268
DtEntityType cmType
Entity type of the countermeasures to launch.
Definition pilotSimLogic.h:269
Defines the base class for all VREngage messages.