:orphan: .. **************************************************************************** .. 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. .. **************************************************************************** .. demo:: terrain_following .. |classification| replace:: Unclassified .. |date| replace:: 2014-08-13 .. |group| replace:: Demos .. |image| replace:: images/terrain_following_demo.png .. |tags| replace:: n/a .. |title| replace:: terrain_following demo .. |startup| replace:: terrain_demo.txt .. |summary| replace:: This demo is an example of a script to control a WSF_AIR_MOVER altitude over terrain. .. |i| image:: images/terrain_following_demo.png :height: 150 px :width: 150 px .. include:: demo_template.txt | This demo is an example of a script to control a WSF_AIR_MOVER altitude over terrain. | | The key points: | It creates a geopoint ahead of you based on the speed of your body and gets | future height above terrain. | | It chooses two vertical rates to choose based on the severity of the | altitude delta coming up. | | It has a upper and lower (hysteresis) boundary so commanded altitude isn't | constantly changing with every on_update. | | It keeps the route it is on and only changes altitude. | | It does not check for negative altitudes so it could possibly fly under | ground if an altitude delta was too large. | | It does not do terrain avoidance.