Library globals

Namespace globals . track_target

View source

This is a small script that adjusts autopilot target values to track
(fly in formation with) an AI or Multiplayer aircraft.

Functions

TrackInit

Initialize target tracking

TrackUpdate

If enabled, update our AP target values based on the target range, bearing, and speed

startTimer

create and start a new timer to cause our update function to be called periodially

Variables

default_goal_range_nm

default_min_speed_kt

default_target_root

default_update_period

script defaults (configurable if you like)

goal_range_nm

goal range to acheive when following target

min_speed_kt

minimum speed so we don't drop out of the sky

target_root

Target property tree root

target_tracking_enable

master enable switch

tracker_loop_id

Loop identifier

update_period

update period