Eaagles::Simulation::NavRadio Class Reference

Inherits Eaagles::Simulation::Radio.

Inherited by Eaagles::Simulation::IlsRadio, and Eaagles::Simulation::TacanRadio.

Inheritance diagram for Eaagles::Simulation::NavRadio:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NavRadio ()
double getLatitude () const
double getLongitude () const
LCreal getAltitude () const
virtual void setPosition (const double lat, const double lon, const LCreal alt)
Dafif::NavaidLoadergetNavaidLoader ()
virtual bool setNavaidLoader (Dafif::NavaidLoader *const n)
Dafif::AirportLoadergetAirportLoader ()
virtual bool setAirportLoader (Dafif::AirportLoader *const a)
virtual void updateData (const LCreal dt=0.000000)

Private Attributes

Dafif::AirportLoaderapdb
Dafif::NavaidLoadernvdb
double latitude
double longitude
LCreal altitude
bool isTuned
bool isInRange

Detailed Description

General class for all navigation radio models

   NavRadio Notes:::
     ## Constructors need to init ALL member variables!!
     ## Made member variables private!!
     ## made several "set" functions virtual and/or public
     ## changed {}'s
     ## changed several pointers from "int *x" to "const int* x"
     ## changed some variable types from "float"  to "LCreal"
     ## Removed Abstract classes
     ## removed "isOn"
     ## removed getRangeBearing() declaration from IlsRadio
     ## Prompted the channel and frequency arguments up to the Radio class
        -- change slots "currentChannel" and "currentFrequency" to just "channel" and "frequency" 


Constructor & Destructor Documentation

Eaagles::Simulation::NavRadio::NavRadio (  ) 


Member Function Documentation

double Eaagles::Simulation::NavRadio::getLatitude (  )  const [inline]

double Eaagles::Simulation::NavRadio::getLongitude (  )  const [inline]

LCreal Eaagles::Simulation::NavRadio::getAltitude (  )  const [inline]

void Eaagles::Simulation::NavRadio::setPosition ( const double  lat,
const double  lon,
const LCreal  alt 
) [virtual]

Sets the position of the vehicle.

Dafif::NavaidLoader* Eaagles::Simulation::NavRadio::getNavaidLoader (  )  [inline]

bool Eaagles::Simulation::NavRadio::setNavaidLoader ( Dafif::NavaidLoader *const   n  )  [virtual]

Passes in the pointer to the Navaid Pointer.

Dafif::AirportLoader* Eaagles::Simulation::NavRadio::getAirportLoader (  )  [inline]

bool Eaagles::Simulation::NavRadio::setAirportLoader ( Dafif::AirportLoader *const  a  )  [virtual]

Passes in the pointer to the Airport Loader.

void Eaagles::Simulation::NavRadio::updateData ( const LCreal  dt = 0.000000  )  [virtual]

Basic::LcComponent interface.

Reimplemented in Eaagles::Simulation::TacanRadio, and Eaagles::Simulation::IlsRadio.


Member Data Documentation

Dafif::AirportLoader* Eaagles::Simulation::NavRadio::apdb [private]

Pointer to Airport loader.

Dafif::NavaidLoader* Eaagles::Simulation::NavRadio::nvdb [private]

Pointer to Navaid loader.

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

Ownship Latitude.

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

Ownship Longitude.

LCreal Eaagles::Simulation::NavRadio::altitude [private]

Ownship altitude (ft).

bool Eaagles::Simulation::NavRadio::isTuned [private]

The radio is receiving the signal of the Nav Aid.

bool Eaagles::Simulation::NavRadio::isInRange [private]

The radio is within range of the Nav aid.


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