WSF
WsfDefaultSensorTracker::State Class Reference

Used to store state data about the interaction between a sensor and a target. More...

#include <WsfDefaultSensorTracker.hpp>

Collaboration diagram for WsfDefaultSensorTracker::State:

Public Member Functions

 State (const WsfTrackId &aRequestId, const WsfSensor::Result &aResult)
 ~State ()

Public Attributes

WsfTrackId mRequestId
 The sensor scheduler request ID associated with the interaction.
WsfFiltermFilterPtr {nullptr}
 If non-zero, a pointer to the filter.
WsfTrackmTrackPtr {nullptr}
 If non-zero, a pointer to the track.
double mLockonTime {-1.0}
size_t mTargetIndex {cINVALID_TARGET_INDEX}
 The target platform index.
size_t mModeIndex {0}
 The mode index.
size_t mXmtrIndex {0}
 The transmitter number (if any).
size_t mRcvrIndex {0}
 The receiver number.
unsigned int mDetectionHistory {0}
int mFailuresUntilDrop {-1}
bool mModeSwitchActive {false}
 True if a mode switch is in progress.
bool mFalseTargetTrack {false}
 True if state id for a false-target track.

Static Public Attributes

static constexpr size_t cINVALID_TARGET_INDEX = ut::npos

Detailed Description

Used to store state data about the interaction between a sensor and a target.

Constructor & Destructor Documentation

◆ State()

WsfDefaultSensorTracker::State::State ( const WsfTrackId & aRequestId,
const WsfSensor::Result & aResult )

◆ ~State()

WsfDefaultSensorTracker::State::~State ( )

References mFilterPtr, and mTrackPtr.

Member Data Documentation

◆ cINVALID_TARGET_INDEX

size_t WsfDefaultSensorTracker::State::cINVALID_TARGET_INDEX = ut::npos
staticconstexpr

◆ mDetectionHistory

unsigned int WsfDefaultSensorTracker::State::mDetectionHistory {0}

A bit stream that represents the success/failure of recent detection attempts. Each recent detection attempt is represented as a bit within this variable, with an 'on' bit representing a successful detection attempt and 'off' bit representing a failed detection attempt. Bit 2^0 is the most recent attempt.

Referenced by WsfDefaultSensorTracker::SwitchMode(), WsfDefaultSensorTracker::TargetDeleted(), WsfDefaultSensorTracker::TargetDetected(), WsfDefaultSensorTracker::TargetSkipped(), WsfDefaultSensorTracker::TargetUndetected(), and WsfDefaultSensorTracker::TurnOff().

◆ mFailuresUntilDrop

int WsfDefaultSensorTracker::State::mFailuresUntilDrop {-1}

The remaining number of detection failures before a track is to be dropped. A value of -1 indicates it should be computed.

Referenced by WsfDefaultSensorTracker::SwitchMode(), WsfDefaultSensorTracker::TargetDetected(), and WsfDefaultSensorTracker::TargetUndetected().

◆ mFalseTargetTrack

bool WsfDefaultSensorTracker::State::mFalseTargetTrack {false}

True if state id for a false-target track.

◆ mFilterPtr

WsfFilter* WsfDefaultSensorTracker::State::mFilterPtr {nullptr}

◆ mLockonTime

double WsfDefaultSensorTracker::State::mLockonTime {-1.0}

The time when 'locked-on' in the current mode. This is typically the time when the M/N establish track criteria is met for the current mode. The value will be less than zero if not locked-on in the current mode.

Referenced by WsfDefaultSensorTracker::GetTargetState(), WsfDefaultSensorTracker::SwitchMode(), and WsfDefaultSensorTracker::TargetDetected().

◆ mModeIndex

◆ mModeSwitchActive

bool WsfDefaultSensorTracker::State::mModeSwitchActive {false}

◆ mRcvrIndex

size_t WsfDefaultSensorTracker::State::mRcvrIndex {0}

The receiver number.

Referenced by State().

◆ mRequestId

◆ mTargetIndex

size_t WsfDefaultSensorTracker::State::mTargetIndex {cINVALID_TARGET_INDEX}

The target platform index.

Referenced by WsfDefaultSensorTracker::ProcessSensorDetectionChanged(), and State().

◆ mTrackPtr

◆ mXmtrIndex

size_t WsfDefaultSensorTracker::State::mXmtrIndex {0}

The transmitter number (if any).

Referenced by WsfDefaultSensorTracker::ProcessSensorDetectionChanged(), and State().


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