1 var offset = parseFloat($['offset']); 2 var angle = parseFloat($['wobble']); 3 var source = $['source']; 4 5 if (isNaN(offset) || offset<0) 6 throw new Error("Invalid wobble offset!"); 7 8 if (isNaN(angle) || angle<0 || angle>360) 9 throw new Error("Invalid wobble angle!"); 10 11 console.out("Start tracking source "+source+" at wobble angle "+angle+"deg and offset "+offset+"deg"); 12 13 include("scripts/CheckStates.js"); 14 15 checkSend(["DRIVE_CONTROL"]); 16 dim.send("DRIVE_CONTROL/TRACK_SOURCE", offset, angle, source); 17