]> git.mxchange.org Git - flightgear.git/commitdiff
Initialize the timer countdown value since this could conceivably start as
authorcurt <curt>
Mon, 3 Jan 2005 00:16:16 +0000 (00:16 +0000)
committercurt <curt>
Mon, 3 Jan 2005 00:16:16 +0000 (00:16 +0000)
any randomly large number (thus preventing the first station seach from
happening at least for a very long time.)

src/Instrumentation/marker_beacon.cxx
src/Instrumentation/navradio.cxx

index 175eac49b82d201a834aad1e8ebd287b1dcad7b0..9f7201d9571715b65524c2ee517dc624c60b1b7f 100644 (file)
@@ -46,7 +46,8 @@ FGMarkerBeacon::FGMarkerBeacon(SGPropertyNode *node) :
     middle_blink(false),
     inner_blink(false),
     name("marker-beacon"),
-    num(0)
+    num(0),
+    _time_before_search_sec(0.0)
 {
     SGPath path( globals->get_fg_root() );
     SGPath term = path;
index cd94276ef35edd18691217325422e5a2fba3edf7..fe586b3e945f59193cbae98c6637a5696554769c 100644 (file)
@@ -68,7 +68,8 @@ FGNavRadio::FGNavRadio(SGPropertyNode *node) :
     horiz_vel(0.0),
     last_x(0.0),
     name("nav"),
-    num(0)
+    num(0),
+    _time_before_search_sec(0.0)
 {
     SGPath path( globals->get_fg_root() );
     SGPath term = path;
@@ -364,6 +365,8 @@ FGNavRadio::update(double dt)
     {
        station = Point3D( nav_x, nav_y, nav_z );
        nav_loc_dist = aircraft.distance3D( station );
+        // cout << "station = " << station << " dist = " << nav_loc_dist
+        //      << endl;
 
        if ( nav_has_gs ) {
             // find closest distance to the gs base line