Eaagles::Simulation::Track Class Reference

Inherits Eaagles::Basic::LcObject.

Inherited by Eaagles::Simulation::NetTrack, and Eaagles::Simulation::RfTrack.

Inheritance diagram for Eaagles::Simulation::Track:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Simulation::Track:

Collaboration graph
[legend]
List of all members.

Public Types

enum  TypeBits {
  AIR_TRACK_BIT = 0x0001, GND_TRACK_BIT = 0x0002, RWR_TRACK_BIT = 0x0004, ONBOARD_SENSOR_BIT = 0x0100,
  DATALINK_BIT = 0x0200
}
enum  IffCode {
  UNKNOWN, FRIENDLY, FOE, COMMERCIAL,
  OTHER
}

Public Member Functions

 Track ()
int getTrackID () const
virtual bool setTrackID (const int v)
bool isType (const short t) const
short getType () const
virtual bool setType (const short t)
virtual bool setSubtype (const short t)
LCreal getTrackAge () const
virtual bool updateTrackAge (const LCreal dt)
virtual bool resetTrackAge ()
LCreal getQuality () const
virtual bool setQuality (const LCreal v)
const osg::Vec3 & getPosition () const
virtual bool setPosition (const osg::Vec3 &p)
virtual bool setPosition (const osg::Vec4 &p)
LCreal getCircularError () const
virtual bool setCircularError (const LCreal err)
LCreal getVerticalError () const
virtual bool setVerticalError (const LCreal err)
bool isLatLonPositionValid () const
bool getLatLonPosition (double *const lat, double *const lon) const
virtual bool setLatLonPosition (const double lat, const double lon)
virtual void clearLatLonValid ()
const osg::Vec3 & getLosVec () const
LCreal getRange () const
LCreal getGroundRange () const
virtual bool setRange (const LCreal r)
LCreal getRangeRate () const
virtual bool setRangeRate (const LCreal rr)
LCreal getTrueAzimuth () const
LCreal getTrueAzimuthR () const
LCreal getTrueAzimuthD () const
LCreal getRelAzimuth () const
LCreal getRelAzimuthR () const
LCreal getRelAzimuthD () const
LCreal getElevation () const
LCreal getElevationR () const
LCreal getElevationD () const
LCreal getGroundSpeed () const
LCreal getGroundSpeedFPS () const
LCreal getGroundSpeedKts () const
LCreal getGroundTrack () const
LCreal getGroundTrackR () const
LCreal getGroundTrackD () const
LCreal getRelGroundTrack () const
LCreal getRelGroundTrackR () const
LCreal getRelGroundTrackD () const
LCreal getAspectAngle () const
LCreal getAspectAngleR () const
LCreal getAspectAngleD () const
const osg::Vec3 & getVelocity () const
virtual bool setVelocity (const osg::Vec3 v)
const osg::Vec3 & getAcceleration () const
virtual bool setAcceleration (const osg::Vec3 a)
bool isIffCode (const IffCode s) const
bool isNotIffCode (const IffCode s) const
IffCode getIffCode () const
virtual bool setIffCode (const IffCode s)
int getShootListIndex () const
virtual bool setShootListIndex (const int idx)
bool isWeaponReleased () const
virtual bool setWeaponReleased (const bool f)
bool isRejected () const
virtual bool setRejected (const bool f)
virtual void ownshipDynamics (const LCreal gtrk, const osg::Vec3 vel, const osg::Vec3 accel, const LCreal dt)
PlayergetTarget ()
const PlayergetTarget () const
virtual bool setTarget (Player *const p)
virtual void clear ()

Private Attributes

int id
short type
IffCode iffCode
LCreal age
LCreal quality
double latitude
double longitude
osg::Vec3 los
osg::Vec3 pos
osg::Vec3 vel
osg::Vec3 accel
LCreal rng
LCreal rngRate
bool llValid
LCreal cErr
LCreal vErr
LCreal gndRng
LCreal taz
LCreal raz
LCreal rel
LCreal aa
LCreal gndSpd
LCreal gndTrk
LCreal relGndTrk
int shootList
bool wpnRel
bool rejected
LCreal osGndTrk
Playertgt

Detailed Description

Generic Target Track


Member Enumeration Documentation

enum Eaagles::Simulation::Track::TypeBits

Enumerator:
AIR_TRACK_BIT  Air Track.
GND_TRACK_BIT  Ground Track.
RWR_TRACK_BIT  Radar Warning Receiver Track.
ONBOARD_SENSOR_BIT  Track from an on-board sensor.
DATALINK_BIT  Off-board (datalink) track.

enum Eaagles::Simulation::Track::IffCode

Enumerator:
UNKNOWN 
FRIENDLY 
FOE 
COMMERCIAL 
OTHER 


Constructor & Destructor Documentation

Eaagles::Simulation::Track::Track (  ) 


Member Function Documentation

int Eaagles::Simulation::Track::getTrackID (  )  const [inline]

Local track ID.

bool Eaagles::Simulation::Track::setTrackID ( const int  v  )  [virtual]

bool Eaagles::Simulation::Track::isType ( const short  t  )  const [inline]

Track type (see TypeBits above).

short Eaagles::Simulation::Track::getType (  )  const [inline]

bool Eaagles::Simulation::Track::setType ( const short  t  )  [virtual]

bool Eaagles::Simulation::Track::setSubtype ( const short  t  )  [virtual]

LCreal Eaagles::Simulation::Track::getTrackAge (  )  const [inline]

Age of the track (seconds) since last update.

bool Eaagles::Simulation::Track::updateTrackAge ( const LCreal  dt  )  [virtual]

bool Eaagles::Simulation::Track::resetTrackAge (  )  [virtual]

LCreal Eaagles::Simulation::Track::getQuality (  )  const [inline]

Quality of the Track (normalized: high(1.0) to low(0.0).

bool Eaagles::Simulation::Track::setQuality ( const LCreal  v  )  [virtual]

const osg::Vec3& Eaagles::Simulation::Track::getPosition (  )  const [inline]

Track position is in meters, NED and centered at ownship.

bool Eaagles::Simulation::Track::setPosition ( const osg::Vec3 &  p  )  [virtual]

bool Eaagles::Simulation::Track::setPosition ( const osg::Vec4 &  p  )  [virtual]

LCreal Eaagles::Simulation::Track::getCircularError (  )  const [inline]

Track's estimated position error, meters.

bool Eaagles::Simulation::Track::setCircularError ( const LCreal  err  )  [virtual]

LCreal Eaagles::Simulation::Track::getVerticalError (  )  const [inline]

Track's estimated vertical (altitude) error, meters.

bool Eaagles::Simulation::Track::setVerticalError ( const LCreal  err  )  [virtual]

bool Eaagles::Simulation::Track::isLatLonPositionValid (  )  const [inline]

Tracks position (lat/lon).

bool Eaagles::Simulation::Track::getLatLonPosition ( double *const   lat,
double *const   lon 
) const

bool Eaagles::Simulation::Track::setLatLonPosition ( const double  lat,
const double  lon 
) [virtual]

void Eaagles::Simulation::Track::clearLatLonValid (  )  [virtual]

const osg::Vec3& Eaagles::Simulation::Track::getLosVec (  )  const [inline]

Line-Of-Sight (LOS) vector; ownship to track.

LCreal Eaagles::Simulation::Track::getRange (  )  const [inline]

Range to track (meters).

LCreal Eaagles::Simulation::Track::getGroundRange (  )  const [inline]

bool Eaagles::Simulation::Track::setRange ( const LCreal  r  )  [virtual]

LCreal Eaagles::Simulation::Track::getRangeRate (  )  const [inline]

Range rate: ownship-track closer rate, meters/sec, with positive rate for increasing range to track.

bool Eaagles::Simulation::Track::setRangeRate ( const LCreal  rr  )  [virtual]

LCreal Eaagles::Simulation::Track::getTrueAzimuth (  )  const [inline]

Azimuth angle, ownship->track, true north.

LCreal Eaagles::Simulation::Track::getTrueAzimuthR (  )  const [inline]

LCreal Eaagles::Simulation::Track::getTrueAzimuthD (  )  const [inline]

LCreal Eaagles::Simulation::Track::getRelAzimuth (  )  const [inline]

Azimuth angle, ownship->track, relative to ownship.

LCreal Eaagles::Simulation::Track::getRelAzimuthR (  )  const [inline]

LCreal Eaagles::Simulation::Track::getRelAzimuthD (  )  const [inline]

LCreal Eaagles::Simulation::Track::getElevation (  )  const [inline]

Elevation angle, ownship->track, relative to ownship.

LCreal Eaagles::Simulation::Track::getElevationR (  )  const [inline]

LCreal Eaagles::Simulation::Track::getElevationD (  )  const [inline]

LCreal Eaagles::Simulation::Track::getGroundSpeed (  )  const [inline]

Track's estimated ground speed (m/s).

LCreal Eaagles::Simulation::Track::getGroundSpeedFPS (  )  const [inline]

LCreal Eaagles::Simulation::Track::getGroundSpeedKts (  )  const [inline]

LCreal Eaagles::Simulation::Track::getGroundTrack (  )  const [inline]

Ground track angle, true north.

LCreal Eaagles::Simulation::Track::getGroundTrackR (  )  const [inline]

LCreal Eaagles::Simulation::Track::getGroundTrackD (  )  const [inline]

LCreal Eaagles::Simulation::Track::getRelGroundTrack (  )  const [inline]

Ground track angle, relative to ownship.

LCreal Eaagles::Simulation::Track::getRelGroundTrackR (  )  const [inline]

LCreal Eaagles::Simulation::Track::getRelGroundTrackD (  )  const [inline]

LCreal Eaagles::Simulation::Track::getAspectAngle (  )  const [inline]

Track->ownship aspect angle.

LCreal Eaagles::Simulation::Track::getAspectAngleR (  )  const [inline]

LCreal Eaagles::Simulation::Track::getAspectAngleD (  )  const [inline]

const osg::Vec3& Eaagles::Simulation::Track::getVelocity (  )  const [inline]

Track velocity vector.

bool Eaagles::Simulation::Track::setVelocity ( const osg::Vec3  v  )  [virtual]

const osg::Vec3& Eaagles::Simulation::Track::getAcceleration (  )  const [inline]

Track acceleration vector.

bool Eaagles::Simulation::Track::setAcceleration ( const osg::Vec3  a  )  [virtual]

bool Eaagles::Simulation::Track::isIffCode ( const IffCode  s  )  const [inline]

IFF information.

bool Eaagles::Simulation::Track::isNotIffCode ( const IffCode  s  )  const [inline]

IffCode Eaagles::Simulation::Track::getIffCode (  )  const [inline]

bool Eaagles::Simulation::Track::setIffCode ( const IffCode  s  )  [virtual]

int Eaagles::Simulation::Track::getShootListIndex (  )  const [inline]

Shootlist support.

bool Eaagles::Simulation::Track::setShootListIndex ( const int  idx  )  [virtual]

bool Eaagles::Simulation::Track::isWeaponReleased (  )  const [inline]

bool Eaagles::Simulation::Track::setWeaponReleased ( const bool  f  )  [virtual]

bool Eaagles::Simulation::Track::isRejected (  )  const [inline]

bool Eaagles::Simulation::Track::setRejected ( const bool  f  )  [virtual]

void Eaagles::Simulation::Track::ownshipDynamics ( const LCreal  gtrk,
const osg::Vec3  vel,
const osg::Vec3  accel,
const LCreal  dt 
) [virtual]

OwnshipDynmaics() will apply ownship movements to the track's predicted position, range and velocity.

Player* Eaagles::Simulation::Track::getTarget (  )  [inline]

Optional pointer to the track target player.

const Player* Eaagles::Simulation::Track::getTarget (  )  const [inline]

bool Eaagles::Simulation::Track::setTarget ( Player *const   p  )  [virtual]

void Eaagles::Simulation::Track::clear (  )  [virtual]

Clear track.

Reimplemented in Eaagles::Simulation::RfTrack.


Member Data Documentation

int Eaagles::Simulation::Track::id [private]

Track id;.

General track ID and status

short Eaagles::Simulation::Track::type [private]

Track type: the bit-wise OR of various type bits (see enum above).

IffCode Eaagles::Simulation::Track::iffCode [private]

Friend or Foe (see above).

LCreal Eaagles::Simulation::Track::age [private]

Track age (sec).

LCreal Eaagles::Simulation::Track::quality [private]

Quality of Track; normalized: high(1.0) to low(0.0).

double Eaagles::Simulation::Track::latitude [private]

Track State Vector.

double Eaagles::Simulation::Track::longitude [private]

Longitude (degs).

osg::Vec3 Eaagles::Simulation::Track::los [private]

Line-of-sight unit vector (NED).

osg::Vec3 Eaagles::Simulation::Track::pos [private]

position relative to ownship (NED) (m)

osg::Vec3 Eaagles::Simulation::Track::vel [private]

Velocity (NED) (m/s).

osg::Vec3 Eaagles::Simulation::Track::accel [private]

Acceleration (NED) ((m/s)/s).

LCreal Eaagles::Simulation::Track::rng [private]

Range from ownship (m).

LCreal Eaagles::Simulation::Track::rngRate [private]

Closure rate (m/s).

bool Eaagles::Simulation::Track::llValid [private]

Latitude & Longitude are valid.

LCreal Eaagles::Simulation::Track::cErr [private]

Circular position error (m).

LCreal Eaagles::Simulation::Track::vErr [private]

Vertical (altitude) error (m).

LCreal Eaagles::Simulation::Track::gndRng [private]

Data computed from state vector Ground Range (m)

LCreal Eaagles::Simulation::Track::taz [private]

True azimuth angle (ownship to track) (r).

LCreal Eaagles::Simulation::Track::raz [private]

Relative azimuth angle (ownship 2 track) (r).

LCreal Eaagles::Simulation::Track::rel [private]

Relative elevation angle (ownship 2 trk) (r).

LCreal Eaagles::Simulation::Track::aa [private]

Aspect angle (r).

LCreal Eaagles::Simulation::Track::gndSpd [private]

Ground speed (m/s).

LCreal Eaagles::Simulation::Track::gndTrk [private]

Ground track angle (r).

LCreal Eaagles::Simulation::Track::relGndTrk [private]

Ground track angle relative to ownship (r).

int Eaagles::Simulation::Track::shootList [private]

Shoot list support Shoot list index

bool Eaagles::Simulation::Track::wpnRel [private]

Released weapon on this track.

bool Eaagles::Simulation::Track::rejected [private]

Target Rejected (from shoot list).

LCreal Eaagles::Simulation::Track::osGndTrk [private]

Ownship's ground track angle (r).

Player* Eaagles::Simulation::Track::tgt [private]

(Optional) pointer to the Track Player


Generated on Tue Dec 19 16:28:40 2006 for Eaagles by  doxygen 1.5.0