WSF
Sensor Class Reference

#include <Sensor.hpp>

Public Member Functions

 Sensor ()
 ~Sensor ()
bool AttemptToDetect (Target &aTarget, WsfSensorResult &aResult)
bool AttemptToDetect (WsfPlatform *aTargetPtr, WsfSensorResult &aResult)
void ConvertRBA_ToWCS (double aGroundRange, double aBearing, double aAltitude, double aLocationWCS[3])
void ConvertWCS_ToRBA (const double aLocationWCS[3], double &aGroundRange, double &aBearing, double &aAltitude)
bool CreateAndInitialize (WsfSimulation &aSimulation)
 Create a local platform that has the sensor under test.
void CueToTarget (Target &aTarget)
void CueToTarget (WsfPlatform *aTargetPtr)
void SetAutomaticTargetCueing (bool aAutomaticTargetCueing)
bool ProcessInput (UtInput &aInput)
WsfPlatformGetPlatform () const
WsfSensorGetSensor () const
double GetSimTime () const
double GetEarthRadiusMultiplier () const
double GetHeight () const
double GetMaximumRange () const
WsfSensor::SettingsGetSettings ()

Detailed Description

An interface class for the sensor under test.

This class was created because many of the available test functions were repeating code.

Note
This class assumes that the sensor does not move during the test!!! If this is ever changed the ConvertRB_ToLL must be changed!.

Constructor & Destructor Documentation

◆ Sensor()

Sensor::Sensor ( )

◆ ~Sensor()

Sensor::~Sensor ( )

Member Function Documentation

◆ AttemptToDetect() [1/2]

bool Sensor::AttemptToDetect ( Target & aTarget,
WsfSensorResult & aResult )

◆ AttemptToDetect() [2/2]

bool Sensor::AttemptToDetect ( WsfPlatform * aTargetPtr,
WsfSensorResult & aResult )

◆ ConvertRBA_ToWCS()

void Sensor::ConvertRBA_ToWCS ( double aGroundRange,
double aBearing,
double aAltitude,
double aLocationWCS[3] )

Given the ground range, bearing relative to the sensor and altitude, return the WCS location.

Note
Bearing is radians clockwise from north!.

Referenced by Target::SetLocationRBA().

◆ ConvertWCS_ToRBA()

void Sensor::ConvertWCS_ToRBA ( const double aLocationWCS[3],
double & aGroundRange,
double & aBearing,
double & aAltitude )

Given a WCS location, return the equivalent ground range, bearing relative to the sensor and altitude.

Note
Bearing is radians clockwise from north!.

◆ CreateAndInitialize()

◆ CueToTarget() [1/2]

void Sensor::CueToTarget ( Target & aTarget)

References CueToTarget(), and Target::GetPlatform().

Referenced by CueToTarget().

◆ CueToTarget() [2/2]

void Sensor::CueToTarget ( WsfPlatform * aTargetPtr)

◆ GetEarthRadiusMultiplier()

double Sensor::GetEarthRadiusMultiplier ( ) const
inline

◆ GetHeight()

double Sensor::GetHeight ( ) const
inline

◆ GetMaximumRange()

double Sensor::GetMaximumRange ( ) const
inline

◆ GetPlatform()

WsfPlatform * Sensor::GetPlatform ( ) const
inline

◆ GetSensor()

WsfSensor * Sensor::GetSensor ( ) const
inline

◆ GetSettings()

WsfSensor::Settings & Sensor::GetSettings ( )
inline

◆ GetSimTime()

double Sensor::GetSimTime ( ) const
inline

◆ ProcessInput()

bool Sensor::ProcessInput ( UtInput & aInput)

◆ SetAutomaticTargetCueing()

void Sensor::SetAutomaticTargetCueing ( bool aAutomaticTargetCueing)
inline

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved