danielp | b913fa7 | 2013-03-03 06:23:20 +0000 | [diff] [blame] | 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package org.spartanrobotics; |
| 5 | |
| 6 | /** |
| 7 | * @author daniel |
| 8 | * |
| 9 | */ |
| 10 | |
| 11 | /** Small thread for running vision code concurrently with debug server. */ |
| 12 | public class TestClient implements Runnable { |
| 13 | |
| 14 | private String atomIP; |
| 15 | |
| 16 | private Thread t; |
| 17 | |
| 18 | /** Constructor to set up new thread. */ |
| 19 | public TestClient(String atomIP) { |
| 20 | t = new Thread(this, "Test Client"); |
| 21 | this.atomIP = atomIP; |
| 22 | t.start(); |
| 23 | } |
| 24 | |
| 25 | /** Simple thread, runs the vision code. */ |
| 26 | public void run() { |
| 27 | String[] args = {atomIP}; |
| 28 | VisionTuner.main(args); |
| 29 | } |
| 30 | } |