EstablishOrbit

Establish orbit pattern around a point

Usage: Used in 10 task(s)

Lua Implementation

-- Establish Orbit
function execute(params)
    local centerPoint = Location3D.Location3D()
    centerPoint:setLat(params.center_lat)
    centerPoint:setLon(params.center_lon)
    centerPoint:setAlt(params.altitude)

    this:addTask("DtOrbit", {
        location = centerPoint,
        radius = params.radius_meters,
        speed = params.speed_mps or 0,
        direction = params.direction or "clockwise"
    })
    return true
end