Utec finally pull maps.

git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@536 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
Tgui 2007-02-21 05:30:11 +00:00
parent d6c263ea09
commit 0ea2973293
2 changed files with 4 additions and 1 deletions

View File

@ -104,8 +104,11 @@ public class UtecSerialConnection implements SerialPortEventListener {
// this.sendDataToUtec('\u0018'); // this.sendDataToUtec('\u0018');
System.out.println("Utec reset called."); System.out.println("Utec reset called.");
this.sendDataToUtec(24); this.sendDataToUtec(24);
this.waitForIt();
this.sendDataToUtec(24); this.sendDataToUtec(24);
this.waitForIt();
this.sendDataToUtec(24); this.sendDataToUtec(24);
this.waitForIt();
} }
/** /**
@ -114,6 +117,7 @@ public class UtecSerialConnection implements SerialPortEventListener {
* @param mapNumber * @param mapNumber
*/ */
public void pullMapData(int mapNumber, GetMapFromUtecListener listener) { public void pullMapData(int mapNumber, GetMapFromUtecListener listener) {
this.resetUtec();
System.out.println("UtecControl, getting map:" + mapNumber); System.out.println("UtecControl, getting map:" + mapNumber);
// Check bounds of map requested // Check bounds of map requested

View File

@ -28,7 +28,6 @@ public class UtecTableModel extends AbstractTableModel {
} }
public Object getValueAt(int row, int col) { public Object getValueAt(int row, int col) {
System.out.println(test+"->("+row+","+col+") "+data[col][row]);
return data[col][row]; return data[col][row];
} }