This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//gist 1d0f7f6de526f489e676a5bb4ed51c90 | |
// This version is only good for docklandings. For anything else use gist 7944e97619657cea4a3af77cf9500c6a instead. | |
// Assumes stable and circular (ap - pe < 500) orbit | |
// Set guidanceactive to false and vacLocLanderFinished to true, if you want to take over during landing | |
if not (defined tgt) { | |
if hastarget AND target:body = body AND (target:status = "landed" OR target:status = "splashed") { | |
set tgt to target:geoposition. |