source: branches/FACT++_lidctrl_usb/scripts/doTrackSource.js@ 18716

Last change on this file since 18716 was 17399, checked in by tbretz, 11 years ago
Check (and wait a short time) whether server is online.
File size: 504 bytes
Line 
1var offset = parseFloat($['offset']);
2var angle = parseFloat($['wobble']);
3var source = $['source'];
4
5if (isNaN(offset) || offset<0)
6 throw new Error("Invalid wobble offset!");
7
8if (isNaN(angle) || angle<0 || angle>360)
9 throw new Error("Invalid wobble angle!");
10
11console.out("Start tracking source "+source+" at wobble angle "+angle+"deg and offset "+offset+"deg");
12
13include("scripts/CheckStates.js");
14
15checkSend(["DRIVE_CONTROL"]);
16dim.send("DRIVE_CONTROL/TRACK_SOURCE", offset, angle, source);
Note: See TracBrowser for help on using the repository browser.