mirror of https://github.com/rusefi/RomRaider.git
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:
parent
d6c263ea09
commit
0ea2973293
|
@ -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
|
||||||
|
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue