auto-sync
This commit is contained in:
parent
664de1ccc3
commit
78753200bc
|
@ -16,6 +16,8 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* This utility produces images of trigger signals supported by rusEfi
|
||||||
|
*
|
||||||
* 06235/15
|
* 06235/15
|
||||||
* (c) Andrey Belomutskiy 2013-2015
|
* (c) Andrey Belomutskiy 2013-2015
|
||||||
*/
|
*/
|
||||||
|
@ -30,8 +32,6 @@ public class TriggerImage {
|
||||||
*/
|
*/
|
||||||
public static int EXTRA_COUNT = 1;
|
public static int EXTRA_COUNT = 1;
|
||||||
|
|
||||||
private static int WAVE_COUNT = 2;
|
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException, InvocationTargetException, InterruptedException {
|
public static void main(String[] args) throws IOException, InvocationTargetException, InterruptedException {
|
||||||
final String path;
|
final String path;
|
||||||
if (args.length != 1) {
|
if (args.length != 1) {
|
||||||
|
@ -127,8 +127,11 @@ public class TriggerImage {
|
||||||
String[] tokens;
|
String[] tokens;
|
||||||
List<Signal> signals = new ArrayList<>();
|
List<Signal> signals = new ArrayList<>();
|
||||||
|
|
||||||
for (int index = 0; index < count; index++) {
|
int index = 0;
|
||||||
|
while (index < count) {
|
||||||
line = reader.readLine();
|
line = reader.readLine();
|
||||||
|
if (line.trim().startsWith("#"))
|
||||||
|
continue;
|
||||||
tokens = line.split(" ");
|
tokens = line.split(" ");
|
||||||
String signalStr = tokens[2];
|
String signalStr = tokens[2];
|
||||||
int signal = Integer.parseInt(signalStr);
|
int signal = Integer.parseInt(signalStr);
|
||||||
|
@ -136,6 +139,7 @@ public class TriggerImage {
|
||||||
double angle = Double.parseDouble(angleStr);
|
double angle = Double.parseDouble(angleStr);
|
||||||
|
|
||||||
signals.add(new Signal(signal, angle));
|
signals.add(new Signal(signal, angle));
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Signal> toShow = new ArrayList<>(signals);
|
List<Signal> toShow = new ArrayList<>(signals);
|
||||||
|
|
Loading…
Reference in New Issue