17#include <vrfmodel/sensorGimbalController.h>
18#include "vreVrfModel/vreSimComponent.h"
20#include <matrix/vlVector.h>
21#include <matrix/vlTaitBryan.h>
25class DtLaserDesignatorStateComponent;
30class DtVreGimbalControllerDescriptor;
53 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
65 virtual const char*
type()
const override;
76 const DtString& functionGroup,
const DtString& function,
double value,
bool repeat)
override;
87 const DtVector& location,
const DtTaitBryan& orientation, DtVector& aimingPoint)
const override;
127 virtual bool targetPoint(
const DtTaitBryan& orientation, DtVector& location)
const override;
168 static DtSimComponent*
creator(
const DtString& name, DtLocalObject*
object, DtSimulationServices* simManager,
169 DtComponentDescriptor* compDescriptor, DtReaderWriterRegistry* parentRegistry);
double checkDistance() const
Gets the current terrain check distance.
virtual ~DtVreGimbalController() override
Virtual destructor.
void resetCheckDistance() const
Resets the terrain check distance to the minimum value.
double myCurrentCheckDistance
Current distance for terrain intersection checks.
Definition vreGimbalController.h:208
virtual void tick() override
Updates the controller state each simulation frame.
DtVreGimbalController()
Default constructor (not implemented)
virtual bool targetPoint(const DtTaitBryan &orientation, DtVector &location) const override
Determines the target point based on orientation and maximum laser range.
virtual void aimSensorAtPoint(const DtVector &worldLocation) override
Aims the sensor at a specified world location.
DtVreGimbalController(const DtVreGimbalController &orig)
Copy constructor (not implemented)
int myLaserCode
Laser code for designation.
Definition vreGimbalController.h:220
void increaseCheckDistance() const
Increases the terrain check distance.
virtual void updateDesignatorLocation()
Updates the current laser designator target location.
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat) override
Calculates and sets port values based on function input.
static DtSimComponent * creator(const DtString &name, DtLocalObject *object, DtSimulationServices *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Factory method to create a new instance of this component.
const DtVreGimbalController & operator=(const DtVreGimbalController &orig)
Assignment operator (not implemented)
virtual const char * type() const override
Gets the type identifier for this component.
DtVreGimbalControllerDescriptor * myVreGimbalDescriptor
Pointer to the gimbal controller descriptor.
Definition vreGimbalController.h:175
virtual void processSetAimGimbal(DtSimMessage *msg) override
Processes a message to set the gimbal aim direction.
DtVreGimbalController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
double myMaxCheckDistance
Maximum distance for terrain intersection checks.
Definition vreGimbalController.h:214
virtual const makVrf::DtLaserDesignatorStateComponent * lookupDesignator() const
Chooses an appropriate laser designator object as the target to engage.
double myMinCheckDistance
Minimum distance for terrain intersection checks.
Definition vreGimbalController.h:202
virtual bool findLocationOfSensorAiming(const DtVector &location, const DtTaitBryan &orientation, DtVector &aimingPoint) const override
Finds the world location that a sensor is aiming at.
bool myContinuousTrack
Flag indicating whether continuous tracking is enabled.
Definition vreGimbalController.h:226
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtVreGimbalControllerType[]
Type identifier for the VRE sensor gimbal controller component.
Definition vreGimbalController.h:33
Definition connectorAccessory.h:39