X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Ftcas.cxx;h=12047c65efbc4ffc8a15cb860626de49d9260f66;hb=7c8ad455a327276e09687b380fb4147ae90b6c8c;hp=560647b73d989b181117e621a2be27c918f16d46;hpb=9c04b2c1adb8a5a9a01a9599a849493cd02ad7b5;p=flightgear.git diff --git a/src/Instrumentation/tcas.cxx b/src/Instrumentation/tcas.cxx index 560647b73..12047c65e 100644 --- a/src/Instrumentation/tcas.cxx +++ b/src/Instrumentation/tcas.cxx @@ -16,7 +16,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. // /////////////////////////////////////////////////////////////////////////////// @@ -101,6 +101,7 @@ #include #include #include +#include #include using std::string; @@ -377,6 +378,12 @@ TCAS::AdvisoryCoordinator::AdvisoryCoordinator(TCAS* _tcas) : void TCAS::AdvisoryCoordinator::init(void) +{ + reinit(); +} + +void +TCAS::AdvisoryCoordinator::reinit(void) { clear(); previous = current; @@ -1181,6 +1188,13 @@ TCAS::init(void) threatDetector.init(); } +void +TCAS::reinit(void) +{ + nextUpdateTime = 0; + advisoryCoordinator.reinit(); +} + void TCAS::bind(void) {