root / trunk / code / projects / colonet / client / cgi / ColonetCGI.java @ 603
History | View | Annotate | Download (464 Bytes)
1 |
|
---|---|
2 |
public class ColonetCGI { |
3 |
|
4 |
public static void main (String [] args) { |
5 |
if (args.length < 1) |
6 |
return;
|
7 |
ColonetCGI ccgi = new ColonetCGI(args[0]); |
8 |
} |
9 |
|
10 |
public ColonetCGI (String strCommand) { |
11 |
ColonetCGIServerInterface ccsi = new ColonetCGIServerInterface(this); |
12 |
ccsi.connect("128.2.99.176", "10123"); |
13 |
ccsi.sendData(ColonetCGIServerInterface.MOTOR2_SET + " 0 225", "200"); |
14 |
ccsi.sendData(ColonetCGIServerInterface.MOTOR1_SET + " 0 225", "200"); |
15 |
|
16 |
} |
17 |
|
18 |
} |