documentation
This commit is contained in:
parent
3010885aa0
commit
5c89e92212
|
@ -3,12 +3,12 @@ package com.rusefi.can;
|
|||
import com.rusefi.util.BitMathUtil;
|
||||
|
||||
public class CANPacket {
|
||||
private final double timeStamp;
|
||||
private final double timeStampMs;
|
||||
private final int id;
|
||||
private final byte[] data;
|
||||
|
||||
public CANPacket(double timeStamp, int id, byte[] data) {
|
||||
this.timeStamp = timeStamp;
|
||||
public CANPacket(double timeStampMs, int id, byte[] data) {
|
||||
this.timeStampMs = timeStampMs;
|
||||
this.id = id;
|
||||
this.data = data;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ public class CANPacket {
|
|||
}
|
||||
|
||||
public double getTimeStamp() {
|
||||
return timeStamp;
|
||||
return timeStampMs;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
|
|
|
@ -20,7 +20,7 @@ public class PcanTrcReader1_1 implements CANLineReader {
|
|||
String[] tokens = line.split("\\s+");
|
||||
if (tokens.length < 2)
|
||||
throw new IllegalStateException("Unexpected token count in " + fileName + "@" + lineIndex + ": [" + line + "]");
|
||||
double timeStamp = Double.parseDouble(tokens[1]);
|
||||
double timeStampMs = Double.parseDouble(tokens[1]);
|
||||
|
||||
int sid = Integer.parseInt(tokens[3], 16);
|
||||
int size = Integer.parseInt(tokens[4]);
|
||||
|
@ -28,6 +28,6 @@ public class PcanTrcReader1_1 implements CANLineReader {
|
|||
byte[] data = CANLineReader.readHexArray(tokens, 5, size);
|
||||
|
||||
|
||||
return new CANPacket(timeStamp, sid, data);
|
||||
return new CANPacket(timeStampMs, sid, data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package com.rusefi.can.reader.impl;
|
||||
|
||||
import com.rusefi.can.CANPacket;
|
||||
import com.rusefi.can.deprecated.decoders.bmw.Bmw192;
|
||||
import com.rusefi.can.reader.CANLineReader;
|
||||
import org.junit.Test;
|
||||
|
||||
|
|
Loading…
Reference in New Issue