only:unused methods
This commit is contained in:
parent
f07d2b05d0
commit
021609f468
|
@ -88,16 +88,6 @@ extern WaveChart waveChart;
|
|||
extern int maxTriggerReentrant;
|
||||
extern uint32_t maxLockedDuration;
|
||||
|
||||
/**
|
||||
* This is useful if we are changing engine mode dynamically
|
||||
* For example http://rusefi.com/forum/viewtopic.php?f=5&t=1085
|
||||
*/
|
||||
static int packEngineMode() {
|
||||
return (engineConfiguration->fuelAlgorithm << 4) +
|
||||
(engineConfiguration->injectionMode << 2) +
|
||||
engineConfiguration->ignitionMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time when the firmware version was last reported
|
||||
* TODO: implement a request/response instead of just constantly sending this out
|
||||
|
@ -352,6 +342,16 @@ extern HIP9011 instance;
|
|||
|
||||
#if EFI_TUNER_STUDIO
|
||||
|
||||
/**
|
||||
* This is useful if we are changing engine mode dynamically
|
||||
* For example http://rusefi.com/forum/viewtopic.php?f=5&t=1085
|
||||
*/
|
||||
static int packEngineMode() {
|
||||
return (engineConfiguration->fuelAlgorithm << 4) +
|
||||
(engineConfiguration->injectionMode << 2) +
|
||||
engineConfiguration->ignitionMode;
|
||||
}
|
||||
|
||||
static void updateTempSensors() {
|
||||
SensorResult clt = Sensor::get(SensorType::Clt);
|
||||
engine->outputChannels.coolant = clt.value_or(0);
|
||||
|
@ -617,18 +617,13 @@ void updateTunerStudioState() {
|
|||
tsOutputChannels->injectorDutyCycle = minF(/*let's avoid scaled "uint8_t, 2" overflow*/127, getInjectorDutyCycle(rpm));
|
||||
#endif
|
||||
|
||||
// 224
|
||||
efitimesec_t timeSeconds = getTimeNowS();
|
||||
tsOutputChannels->seconds = timeSeconds;
|
||||
|
||||
// 252
|
||||
tsOutputChannels->engineMode = packEngineMode();
|
||||
// 120
|
||||
tsOutputChannels->firmwareVersion = getRusEfiVersion();
|
||||
|
||||
// 276
|
||||
tsOutputChannels->accelerationX = engine->sensors.accelerometer.x;
|
||||
// 278
|
||||
tsOutputChannels->accelerationY = engine->sensors.accelerometer.y;
|
||||
tsOutputChannels->accelerationZ = engine->sensors.accelerometer.z;
|
||||
tsOutputChannels->accelerationRoll = engine->sensors.accelerometer.roll;
|
||||
|
|
|
@ -83,11 +83,11 @@ void stopPedalPins() {
|
|||
|
||||
#if ! EFI_UNIT_TEST
|
||||
|
||||
static void applyPidSettings() {
|
||||
#if EFI_IDLE_CONTROL
|
||||
static void applyPidSettings() {
|
||||
engine->module<IdleController>().unmock().getIdlePid()->updateFactors(engineConfiguration->idleRpmPid.pFactor, engineConfiguration->idleRpmPid.iFactor, engineConfiguration->idleRpmPid.dFactor);
|
||||
#endif // EFI_IDLE_CONTROL
|
||||
}
|
||||
#endif // EFI_IDLE_CONTROL
|
||||
|
||||
void setTargetIdleRpm(int value) {
|
||||
setTargetRpmCurve(value);
|
||||
|
|
|
@ -132,7 +132,6 @@ static ObdCode getCodeForInjector(int idx, brain_pin_diag_e diag) {
|
|||
|
||||
return (ObdCode)((int)ObdCode::OBD_Injector_Circuit_1 + idx);
|
||||
}
|
||||
#endif // BOARD_EXT_GPIOCHIPS > 0 && EFI_PROD_CODE
|
||||
|
||||
static ObdCode getCodeForIgnition(int idx, brain_pin_diag_e diag) {
|
||||
if (idx < 0 || idx >= 12) {
|
||||
|
@ -144,6 +143,7 @@ static ObdCode getCodeForIgnition(int idx, brain_pin_diag_e diag) {
|
|||
|
||||
return (ObdCode)((int)ObdCode::OBD_Ignition_Circuit_1 + idx);
|
||||
}
|
||||
#endif // BOARD_EXT_GPIOCHIPS > 0 && EFI_PROD_CODE
|
||||
|
||||
void SensorChecker::onSlowCallback() {
|
||||
// Don't check when the ignition is off, or when it was just turned on (let things stabilize)
|
||||
|
|
Loading…
Reference in New Issue