# End Source File\r
# Begin Source File\r
\r
+SOURCE=.\src\Navaids\mkrbeacons.cxx\r
+\r
+!IF "$(CFG)" == "FlightGear - Win32 Release"\r
+\r
+# PROP Intermediate_Dir "Release\Lib_Navaids"\r
+\r
+!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug"\r
+\r
+# PROP Intermediate_Dir "Debug\Lib_Navaids"\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=.\src\Navaids\navlist.cxx\r
\r
!IF "$(CFG)" == "FlightGear - Win32 Release"\r
#include <Aircraft/aircraft.hxx>
#include <Main/bfi.hxx>
#include <Navaids/ilslist.hxx>
+#include <Navaids/mkrbeacons.hxx>
#include <Navaids/navlist.hxx>
#include <Time/event.hxx>
// cout << "not picking up vor1. :-(" << endl;
}
+ FGBeacon::fgMkrBeacType beacon_type
+ = current_beacons->query( lon * RAD_TO_DEG, lat * RAD_TO_DEG, elev );
+
+ outer_marker = middle_marker = inner_marker = false;
+
+ if ( beacon_type == FGBeacon::OUTER ) {
+ outer_marker = true;
+ cout << "OUTER MARKER" << endl;
+ } else if ( beacon_type == FGBeacon::MIDDLE ) {
+ middle_marker = true;
+ cout << "MIDDLE MARKER" << endl;
+ } else if ( beacon_type == FGBeacon::INNER ) {
+ inner_marker = true;
+ cout << "INNER MARKER" << endl;
+ }
+
// adf
if ( current_navlist->query( lon, lat, elev, adf_freq, &nav ) ) {
char freq[128];
double nav2_vol_btn;
bool nav2_ident_btn;
+ bool outer_marker;
+ bool middle_marker;
+ bool inner_marker;
+
string adf_ident;
string adf_trans_ident;
bool adf_valid;
#include <Objects/matlib.hxx>
#include <Navaids/fixlist.hxx>
#include <Navaids/ilslist.hxx>
+#include <Navaids/mkrbeacons.hxx>
#include <Navaids/navlist.hxx>
#include <Scenery/scenery.hxx>
#include <Scenery/tilemgr.hxx>
p_nav.append( "Navaids/default.nav" );
current_navlist->init( p_nav );
- FG_LOG(FG_GENERAL, FG_INFO, " ILS");
+ FG_LOG(FG_GENERAL, FG_INFO, " ILS and Marker Beacons");
+ current_beacons = new FGMarkerBeacons;
+ current_beacons->init();
current_ilslist = new FGILSList;
FGPath p_ils( globals->get_fg_root() );
p_ils.append( "Navaids/default.ils" );