Skip to content

Commit

Permalink
PinLine
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Jan 17, 2025
1 parent 21cacf8 commit e2320d7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions random/src/main/java/com/rusefi/PinLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

public class PinLine {

private static final String PREFIX = "X1-";
private static final String PREFIX = "";

private static final int INDEX_FROM = 17;
private static final int INDEX_TO = 32;
private static final int INDEX_FROM = 49;
private static final int INDEX_TO = 64;

private static final int Y_FROM = 215;
private static final int Y_FROM = 402;

private static final int X_FROM = 216;
private static final int X_TO = 772;
private static final int X_FROM = 360;
private static final int X_TO = 1013;

public static void main(String[] args) {

int count = INDEX_TO - INDEX_FROM;
float width = X_TO - X_FROM;
float perPin = width / count;

System.out.println("# auto-generated by PinLine.java");
System.out.println("# auto-generated by PinLine.java from can-log-tools");
System.out.println("# " + INDEX_FROM + " " + INDEX_TO);
System.out.println("# " + X_FROM + " " + X_TO);
System.out.println("# " + Y_FROM);
Expand Down

0 comments on commit e2320d7

Please sign in to comment.