auto-sync
This commit is contained in:
parent
ebb80aac5c
commit
8d9d032a98
|
@ -575,7 +575,7 @@ typedef enum {
|
|||
ALTERNATOR = 0,
|
||||
TPS_ACCEL = 1,
|
||||
WARMUP_ENRICH = 2,
|
||||
mode3 = 3,
|
||||
IDLE = 3,
|
||||
|
||||
Force_4b_debug_mode_e = ENUM_32_BITS,
|
||||
} debug_mode_e;
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
static THD_WORKING_AREA(ivThreadStack, UTILITY_THREAD_STACK_SIZE);
|
||||
|
||||
static Logging *logger;
|
||||
extern TunerStudioOutputChannels tsOutputChannels;
|
||||
EXTERN_ENGINE
|
||||
;
|
||||
|
||||
|
@ -112,6 +113,10 @@ static void manualIdleController(int positionPercent) {
|
|||
}
|
||||
actualIdlePosition = cltCorrectedPosition;
|
||||
|
||||
if (engineConfiguration->debugMode == IDLE) {
|
||||
tsOutputChannels.debugFloatField1 = actualIdlePosition;
|
||||
}
|
||||
|
||||
if (boardConfiguration->useStepperIdle) {
|
||||
iacMotor.setTargetPosition(cltCorrectedPosition / 100 * engineConfiguration->idleStepperTotalSteps);
|
||||
} else {
|
||||
|
|
|
@ -6,6 +6,7 @@ import etch.util.CircularByteBuffer;
|
|||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* (c) Andrey Belomutskiy
|
||||
|
@ -59,7 +60,9 @@ public class IncomingDataBuffer {
|
|||
int pending = cbb.length();
|
||||
if (pending > 0) {
|
||||
logger.error("Unexpected pending data: " + pending + " byte(s)");
|
||||
cbb.get(new byte[pending]);
|
||||
byte[] bytes = new byte[pending];
|
||||
cbb.get(bytes);
|
||||
logger.error("data: " + Arrays.toString(bytes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,8 @@ public class SerialPortReader implements SerialPortEventListener {
|
|||
}
|
||||
}
|
||||
|
||||
public void readInitial() throws SerialPortException {
|
||||
int input = serialPort.getInputBufferBytesCount();
|
||||
FileLog.MAIN.logLine(input + " bytes in input buffer");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue