Last change
on this file since 17689 was 17399, checked in by tbretz, 11 years ago |
Check (and wait a short time) whether server is online.
|
File size:
504 bytes
|
Line | |
---|
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);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.