return true;
}
-// Query the database for the specified frequency. It is assumed that
-// there will be multiple stations with matching frequencies so a
-// position must be specified. Lon and lat are in degrees, elev is in
-// meters.
FGNavRecord *FGNavList::findByFreq( double freq, double lon, double lat, double elev )
{
nav_list_type stations = navaids[(int)(freq*100.0 + 0.5)];
// cout << "Master index = " << master_index << endl;
// cout << "beacon search length = " << beacons.size() << endl;
- nav_list_iterator current = navs.begin();
- nav_list_iterator last = navs.end();
+ nav_list_const_iterator current = navs.begin();
+ nav_list_const_iterator last = navs.end();
Point3D aircraft = sgGeodToCart( Point3D(lon_rad,
lat_rad,
}
// Given a TACAN Channel return the first matching frequency
-FGTACANRecord *FGTACANList::findByChannel( string channel )
+FGTACANRecord *FGTACANList::findByChannel( const string& channel )
{
tacan_list_type stations = ident_channels[channel];
SG_LOG( SG_INSTR, SG_DEBUG, "findByChannel " << channel<< " size " << stations.size() );