telemetry dreams

This commit is contained in:
rusefi 2017-05-04 17:03:23 -04:00
parent dbb54e345c
commit e610a76ff1
3 changed files with 8 additions and 3 deletions

View File

@ -106,7 +106,7 @@ void Engine::reset() {
sensorChartMode = SC_OFF;
actualLastInjection = 0;
isAlternatorControlEnabled = false;
callFromPitEndTime = 0;
callFromPitStopEndTime = 0;
wallFuelCorrection = 0;
/**
* it's important for fixAngle() that engineCycle field never has zero

View File

@ -278,9 +278,9 @@ public:
// floatms_t callToPitEndTime;
/**
* remote telemetry: if not zero, time to stop flashing 'CALL FROM PIT' light
* remote telemetry: if not zero, time to stop flashing 'CALL FROM PIT STOP' light
*/
floatms_t callFromPitEndTime;
floatms_t callFromPitStopEndTime;
/**
* This flag indicated a big enough problem that engine control would be

View File

@ -438,6 +438,10 @@ static void printTemperatureInfo(void) {
#endif /* EFI_ANALOG_SENSORS */
}
static void setCallFromPitStop(int durationMs) {
engine->callFromPitStopEndTime = currentTimeMillis() + durationMs;
}
static void setCrankingRpm(int value) {
engineConfiguration->cranking.rpm = value;
doPrintConfiguration(engine);
@ -1024,6 +1028,7 @@ static void setTpsErrorDetectionTooHigh(int v) {
}
command_i_s commandsI[] = {{"ignition_mode", setIgnitionMode},
{"call_from_pitstop", setCallFromPitStop},
{"cranking_rpm", setCrankingRpm},
{"cranking_injection_mode", setCrankingInjectionMode},
{"injection_mode", setInjectionMode},