DtPilotInstrumentsInputLogic handles aircraft instrument inputs including radar controls, sensors, display management controls, and other avionics systems. This class translates user input into appropriate actions for aircraft instrumentation systems.
#include <instrumentsInputLogic.h>
|
| | DtPilotInstrumentsInputLogic (DtPilotSimLogic &simLogic, const std::string &configFile) |
| |
| virtual | ~DtPilotInstrumentsInputLogic () override |
| |
| virtual void | initialize () override |
| |
| virtual void | addInstrumentsActionHandler (const std::string &action, DtActionDelegate handler) |
| |
| virtual void | toggleRwrSounds (float val=1) |
| |
| virtual void | sendTacCommand (TacCommandMessage::Command command, float value) |
| |
| virtual void | radarCursorUp (float val) |
| |
| virtual void | radarCursorRight (float val) |
| |
| virtual void | radarCursorDown (float val) |
| |
| virtual void | radarCursorLeft (float val) |
| |
| virtual void | radarCursorX (float val) |
| |
| virtual void | radarCursorY (float val) |
| |
| virtual void | radarCursorSelect (float val) |
| |
| virtual void | radarCursorDeselect (float val) |
| |
| virtual void | cycleTargetsForward (float val) |
| |
| virtual void | cycleTargetsBackward (float val) |
| |
| virtual void | clearTargets (float val) |
| |
| virtual void | copCursorX (float val) |
| |
| virtual void | copCursorY (float val) |
| |
| virtual void | dms (std::string direction, double val) |
| |
| virtual void | dmsDown (double val) |
| |
| virtual void | dmsLeft (double val) |
| |
| virtual void | dmsRight (double val) |
| |
| virtual void | dmsUp (double val) |
| |
| virtual void | sensorAzimuth (double val) |
| |
| virtual void | sensorElevation (double val) |
| |
| virtual void | sensorReset (double val) |
| |
| virtual void | sensorTrackLocation (double val) |
| |
| virtual void | sensorTrackObject (double val) |
| |
| virtual void | sensorZoom (double val) |
| |
| virtual void | sensorCycle (double val) |
| |
| virtual void | sarRequest (double val) |
| |
| virtual DtVreMessageResult | handlePlayerControlsState (DtVreMessage *msg) |
| |
| | DtInputLogic () |
| |
| virtual | ~DtInputLogic () |
| |
| virtual void | shutdown () |
| |
| virtual bool | loadInputConfig (const std::string &config, const std::string &group, bool alwaysOnTop=false, bool alwaysEnabled=false) |
| |
| virtual void | unloadInputConfig (const std::string &category, const std::string &group) |
| |
| virtual void | addActionHandler (const std::string &group, const std::string &action, const DtActionDelegate &handler) |
| |
| virtual void | removeActionGroup (const std::string &group) |
| |
| virtual void | setRawInputHandler (const DtInputDelegate &inputDelegate) |
| |
| virtual void | removeRawInputHandler () |
| |
| virtual void | removeActionHandler (const std::string &group, const std::string &action) |
| |
◆ DtPilotInstrumentsInputLogic()
| makVre::DtPilotInstrumentsInputLogic::DtPilotInstrumentsInputLogic |
( |
DtPilotSimLogic & | simLogic, |
|
|
const std::string & | configFile ) |
Constructor.
- Parameters
-
| simLogic | Reference to the pilot simulation logic component |
| configFile | Path to the input configuration file |
◆ ~DtPilotInstrumentsInputLogic()
| virtual makVre::DtPilotInstrumentsInputLogic::~DtPilotInstrumentsInputLogic |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| virtual void makVre::DtPilotInstrumentsInputLogic::initialize |
( |
| ) |
|
|
overridevirtual |
Initializes the instruments input logic component.
- Returns
- True if initialization was successful
Reimplemented from makVre::DtInputLogic.
◆ addInstrumentsActionHandler()
| virtual void makVre::DtPilotInstrumentsInputLogic::addInstrumentsActionHandler |
( |
const std::string & | action, |
|
|
DtActionDelegate | handler ) |
|
virtual |
Adds an action handler for instrument controls.
- Parameters
-
| action | Name of the action to handle |
| handler | Function to handle the specified action |
◆ toggleRwrSounds()
| virtual void makVre::DtPilotInstrumentsInputLogic::toggleRwrSounds |
( |
float | val = 1 | ) |
|
|
virtual |
Toggles radar warning receiver sounds.
- Parameters
-
| val | Input value, defaults to 1.0 for activation |
◆ sendTacCommand()
Sends a tactical command to the system.
- Parameters
-
| command | Type of tactical command to send |
| value | Value associated with the command |
◆ radarCursorUp()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorUp |
( |
float | val | ) |
|
|
virtual |
Moves the radar cursor upward.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ radarCursorRight()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorRight |
( |
float | val | ) |
|
|
virtual |
Moves the radar cursor to the right.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ radarCursorDown()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorDown |
( |
float | val | ) |
|
|
virtual |
Moves the radar cursor downward.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ radarCursorLeft()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorLeft |
( |
float | val | ) |
|
|
virtual |
Moves the radar cursor to the left.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ radarCursorX()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorX |
( |
float | val | ) |
|
|
virtual |
Controls radar cursor horizontal position.
- Parameters
-
| val | Input value in range [-1.0, 1.0] |
◆ radarCursorY()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorY |
( |
float | val | ) |
|
|
virtual |
Controls radar cursor vertical position.
- Parameters
-
| val | Input value in range [-1.0, 1.0] |
◆ radarCursorSelect()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorSelect |
( |
float | val | ) |
|
|
virtual |
Selects the target under the radar cursor.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ radarCursorDeselect()
| virtual void makVre::DtPilotInstrumentsInputLogic::radarCursorDeselect |
( |
float | val | ) |
|
|
virtual |
Deselects the currently selected radar target.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ cycleTargetsForward()
| virtual void makVre::DtPilotInstrumentsInputLogic::cycleTargetsForward |
( |
float | val | ) |
|
|
virtual |
Cycles forward through available targets.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ cycleTargetsBackward()
| virtual void makVre::DtPilotInstrumentsInputLogic::cycleTargetsBackward |
( |
float | val | ) |
|
|
virtual |
Cycles backward through available targets.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ clearTargets()
| virtual void makVre::DtPilotInstrumentsInputLogic::clearTargets |
( |
float | val | ) |
|
|
virtual |
Clears all selected targets.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ copCursorX()
| virtual void makVre::DtPilotInstrumentsInputLogic::copCursorX |
( |
float | val | ) |
|
|
virtual |
Controls co-pilot's cursor horizontal position.
- Parameters
-
| val | Input value in range [-1.0, 1.0] |
◆ copCursorY()
| virtual void makVre::DtPilotInstrumentsInputLogic::copCursorY |
( |
float | val | ) |
|
|
virtual |
Controls co-pilot's cursor vertical position.
- Parameters
-
| val | Input value in range [-1.0, 1.0] |
◆ dms()
| virtual void makVre::DtPilotInstrumentsInputLogic::dms |
( |
std::string | direction, |
|
|
double | val ) |
|
virtual |
Controls the Display Management Switch (DMS)
- Parameters
-
| direction | Direction to push the switch ("up", "down", "left", "right") |
| val | Input value, typically 1.0 for activation |
◆ dmsDown()
| virtual void makVre::DtPilotInstrumentsInputLogic::dmsDown |
( |
double | val | ) |
|
|
virtual |
Activates the Display Management Switch in down direction.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ dmsLeft()
| virtual void makVre::DtPilotInstrumentsInputLogic::dmsLeft |
( |
double | val | ) |
|
|
virtual |
Activates the Display Management Switch in left direction.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ dmsRight()
| virtual void makVre::DtPilotInstrumentsInputLogic::dmsRight |
( |
double | val | ) |
|
|
virtual |
Activates the Display Management Switch in right direction.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ dmsUp()
| virtual void makVre::DtPilotInstrumentsInputLogic::dmsUp |
( |
double | val | ) |
|
|
virtual |
Activates the Display Management Switch in up direction.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ sensorAzimuth()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorAzimuth |
( |
double | val | ) |
|
|
virtual |
Controls sensor azimuth position.
- Parameters
-
| val | Input value in range [-1.0, 1.0] |
◆ sensorElevation()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorElevation |
( |
double | val | ) |
|
|
virtual |
Controls sensor elevation.
- Parameters
-
| val | Input value in range [-1.0, 1.0] |
◆ sensorReset()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorReset |
( |
double | val | ) |
|
|
virtual |
Resets sensor to default position.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ sensorTrackLocation()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorTrackLocation |
( |
double | val | ) |
|
|
virtual |
Commands sensor to track a location.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ sensorTrackObject()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorTrackObject |
( |
double | val | ) |
|
|
virtual |
Commands sensor to track an object.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ sensorZoom()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorZoom |
( |
double | val | ) |
|
|
virtual |
Controls sensor zoom level.
- Parameters
-
| val | Input value in range [0.0, 1.0] |
◆ sensorCycle()
| virtual void makVre::DtPilotInstrumentsInputLogic::sensorCycle |
( |
double | val | ) |
|
|
virtual |
Cycles through available sensor modes.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ sarRequest()
| virtual void makVre::DtPilotInstrumentsInputLogic::sarRequest |
( |
double | val | ) |
|
|
virtual |
Initiates a Synthetic Aperture Radar (SAR) request.
- Parameters
-
| val | Input value, typically 1.0 for activation |
◆ handlePlayerControlsState()
Handles player controls state messages.
- Parameters
-
| msg | Pointer to the message being processed |
- Returns
- Message processing result
Handles player controls state messages to cancel SAR requests if disabled.
◆ mySimLogic
Reference to the pilot simulation logic component.
◆ myConfigFile
| std::string makVre::DtPilotInstrumentsInputLogic::myConfigFile |
|
protected |
Path to the input configuration file.
◆ mySarRequestActive
| bool makVre::DtPilotInstrumentsInputLogic::mySarRequestActive |
|
protected |
Flag indicating if a SAR request is active.
◆ myIntersectors
| makVrv::DtIntersectorsContainer* makVre::DtPilotInstrumentsInputLogic::myIntersectors |
|
protected |
Pointer to the intersectors container.
The documentation for this class was generated from the following file: