2022-01-11 11:10:30 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/actuators/idle_state.txt Tue Jan 11 14:08:37 EST 2022
2021-10-16 20:55:29 -07:00
// by class com.rusefi.output.CHeaderConsumer
// begin
# pragma once
# include "rusefi_types.h"
// start of idle_state_s
struct idle_state_s {
/**
* offset 0
*/
idle_state_e idleState = ( idle_state_e ) 0 ;
/**
* that ' s current position with CLT and IAT corrections
* offset 4
*/
percent_t currentIdlePosition = ( percent_t ) 0 ;
/**
* current position without adjustments ( iacByTpsTaper , afterCrankingIACtaperDuration )
* offset 8
*/
percent_t baseIdlePosition = ( percent_t ) 0 ;
/**
* true in IDLE throttle pedal state , false if driver is touching the pedal
* todo : better name for this field ?
* offset 12
*/
int throttlePedalUpState = ( int ) 0 ;
2021-10-16 21:27:12 -07:00
/**
* The idea of ' mightResetPid ' is to reset PID only once - each time when TPS > idlePidDeactivationTpsThreshold .
* The throttle pedal can be pressed for a long time , making the PID data obsolete ( thus the reset is required ) .
* We set ' mightResetPid ' to true only if PID was actually used ( i . e . idlePid . getOutput ( ) was called ) to save some CPU resources .
* See automaticIdleController ( ) .
2021-10-30 18:38:27 -07:00
offset 16 bit 0 */
2021-12-01 21:04:17 -08:00
bool mightResetPid : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 1 */
2021-12-01 21:04:17 -08:00
bool shouldResetPid : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
* This is needed to slowly turn on the PID back after it was reset .
2021-10-30 18:38:27 -07:00
offset 16 bit 2 */
2021-12-01 21:04:17 -08:00
bool wasResetPid : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
* This is used when the PID configuration is changed , to guarantee the reset
2021-10-30 18:38:27 -07:00
offset 16 bit 3 */
2021-12-01 21:04:17 -08:00
bool mustResetPid : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 4 */
2022-01-10 17:57:47 -08:00
bool isCoasting : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 5 */
2022-01-10 17:57:47 -08:00
bool useIacTableForCoasting : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 6 */
2022-01-10 17:57:47 -08:00
bool notIdling : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 7 */
2022-01-10 17:57:47 -08:00
bool needReset : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 8 */
2022-01-10 17:57:47 -08:00
bool isInDeadZone : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 9 */
2022-01-10 17:57:47 -08:00
bool isBlipping : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 10 */
2022-01-10 17:57:47 -08:00
bool useClosedLoop : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 11 */
2022-01-10 18:55:52 -08:00
bool badTps : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 12 */
2022-01-10 18:55:52 -08:00
bool looksLikeRunning : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 13 */
2022-01-10 18:55:52 -08:00
bool looksLikeCoasting : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 14 */
2022-01-10 18:55:52 -08:00
bool looksLikeCrankToIdle : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 15 */
2022-01-11 11:10:30 -08:00
bool useInstantRpmForIdle : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 16 */
2022-01-11 11:10:30 -08:00
bool isVerboseIAC : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 17 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_17 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 18 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_18 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 19 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_19 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 20 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_20 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 21 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_21 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 22 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_22 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 23 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_23 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 24 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_24 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 25 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_25 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 26 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_26 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 27 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_27 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 28 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_28 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 29 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_29 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 30 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_30 : 1 { } ;
2021-10-16 21:27:12 -07:00
/**
2021-10-30 18:38:27 -07:00
offset 16 bit 31 */
2022-01-11 11:10:30 -08:00
bool unusedBit_21_31 : 1 { } ;
2022-01-10 18:55:52 -08:00
/**
* offset 20
*/
int targetRpmByClt = ( int ) 0 ;
/**
* offset 24
*/
int targetRpmAcBump = ( int ) 0 ;
/** total size 28*/
2021-10-16 20:55:29 -07:00
} ;
// end
2022-01-11 11:10:30 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/actuators/idle_state.txt Tue Jan 11 14:08:37 EST 2022