# **************************************************************************** # CUI # # The Advanced Framework for Simulation, Integration, and Modeling (AFSIM) # # The use, dissemination or disclosure of data in this file is subject to # limitation or restriction. See accompanying README and LICENSE for details. # **************************************************************************** behavior default-flight script_debug_writes off script_variables bool mDrawRoute = false; WsfDraw mDraw = WsfDraw(); bool mResumeDefaultRoute = true; double cDEFAULT_SPEED = 450.0 * MATH.MPS_PER_NMPH(); double cDEFAULT_ACCEL = 7.5 * Earth.ACCEL_OF_GRAVITY(); // 7.5 G (m/s^2) double cLARGE_UPDATE_INTERVAL = 3.0; // update once every 3 seconds end_script_variables script void DrawRoute() WsfRoute currRoute = PLATFORM.Route(); if (currRoute.IsValid()) { //PLATFORM.Comment("draw current route"); mDraw.SetLayer("behavior default=flight"); mDraw.Erase(PLATFORM.Name()); mDraw.SetId(PLATFORM.Name()); mDraw.SetColor(0,1,1); mDraw.SetLineSize(2); mDraw.SetLineStyle("dash_dot2"); mDraw.BeginPolyline(); for (int i=0; i