fw-custom-mega100/generated/live_data_generated/idle_state_generated.h

175 lines
3.8 KiB
C
Raw Normal View History

2024-09-05 17:26:28 -07:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/idle_state.txt
// 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;
/**
* @@GAUGE_NAME_IAC@@
* units: %
* offset 4
*/
percent_t currentIdlePosition = (percent_t)0;
/**
* "idle: base value
* current position without adjustments (iacByTpsTaper, afterCrankingIACtaperDuration)"
* offset 8
*/
percent_t baseIdlePosition = (percent_t)0;
/**
* Idle: Closed loop
* offset 12
*/
percent_t idleClosedLoop = (percent_t)0;
/**
* idle: iacByTpsTaper portion
* offset 16
*/
percent_t iacByTpsTaper = (percent_t)0;
/**
* idle: mightResetPid
* 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().
2024-12-15 16:20:47 -08:00
offset 20 bit 0 */
2024-09-05 17:26:28 -07:00
bool mightResetPid : 1 {};
/**
* Idle: shouldResetPid
2024-12-15 16:20:47 -08:00
offset 20 bit 1 */
2024-09-05 17:26:28 -07:00
bool shouldResetPid : 1 {};
/**
* Idle: wasResetPid
* This is needed to slowly turn on the PID back after it was reset.
2024-12-15 16:20:47 -08:00
offset 20 bit 2 */
2024-09-05 17:26:28 -07:00
bool wasResetPid : 1 {};
/**
* Idle: mustResetPid
* This is used when the PID configuration is changed, to guarantee the reset
2024-12-15 16:20:47 -08:00
offset 20 bit 3 */
2024-09-05 17:26:28 -07:00
bool mustResetPid : 1 {};
/**
* Idle: cranking
2024-12-15 16:20:47 -08:00
offset 20 bit 4 */
2024-09-05 17:26:28 -07:00
bool isCranking : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 5 */
2024-09-05 17:26:28 -07:00
bool isIacTableForCoasting : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 6 */
2024-09-05 17:26:28 -07:00
bool notIdling : 1 {};
/**
* Idle: reset
2024-12-15 16:20:47 -08:00
offset 20 bit 7 */
2024-09-05 17:26:28 -07:00
bool needReset : 1 {};
/**
* Idle: dead zone
2024-12-15 16:20:47 -08:00
offset 20 bit 8 */
2024-09-05 17:26:28 -07:00
bool isInDeadZone : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 9 */
2024-09-05 17:26:28 -07:00
bool isBlipping : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 10 */
2024-09-05 17:26:28 -07:00
bool useClosedLoop : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 11 */
2024-09-05 17:26:28 -07:00
bool badTps : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 12 */
2024-09-05 17:26:28 -07:00
bool looksLikeRunning : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 13 */
2024-09-05 17:26:28 -07:00
bool looksLikeCoasting : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 14 */
2024-09-05 17:26:28 -07:00
bool looksLikeCrankToIdle : 1 {};
/**
* Idle: coasting
2024-12-15 16:20:47 -08:00
offset 20 bit 15 */
2024-09-05 17:26:28 -07:00
bool isIdleCoasting : 1 {};
/**
* Idle: Closed loop active
2024-12-15 16:20:47 -08:00
offset 20 bit 16 */
2024-09-05 17:26:28 -07:00
bool isIdleClosedLoop : 1 {};
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 17 */
bool unusedBit_22_17 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 18 */
bool unusedBit_22_18 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 19 */
bool unusedBit_22_19 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 20 */
bool unusedBit_22_20 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 21 */
bool unusedBit_22_21 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 22 */
bool unusedBit_22_22 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 23 */
bool unusedBit_22_23 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 24 */
bool unusedBit_22_24 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 25 */
bool unusedBit_22_25 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 26 */
bool unusedBit_22_26 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 27 */
bool unusedBit_22_27 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 28 */
bool unusedBit_22_28 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 29 */
bool unusedBit_22_29 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 30 */
bool unusedBit_22_30 : 1 {};
2024-09-05 17:26:28 -07:00
/**
2024-12-15 16:20:47 -08:00
offset 20 bit 31 */
bool unusedBit_22_31 : 1 {};
2024-09-05 17:26:28 -07:00
/**
* Idle: Target RPM
2024-12-15 16:20:47 -08:00
* offset 24
2024-09-05 17:26:28 -07:00
*/
int idleTarget = (int)0;
/**
* Idle: Target RPM base
2024-12-15 16:20:47 -08:00
* offset 28
2024-09-05 17:26:28 -07:00
*/
int targetRpmByClt = (int)0;
/**
* Idle: Target A/C RPM
2024-12-15 16:20:47 -08:00
* offset 32
2024-09-05 17:26:28 -07:00
*/
int targetRpmAc = (int)0;
/**
* idle: iacByRpmTaper portion
2024-12-15 16:20:47 -08:00
* offset 36
2024-09-05 17:26:28 -07:00
*/
percent_t iacByRpmTaper = (percent_t)0;
/**
* idle: Lua Adder
2024-12-15 16:20:47 -08:00
* offset 40
2024-09-05 17:26:28 -07:00
*/
percent_t luaAdd = (percent_t)0;
};
2024-12-15 16:20:47 -08:00
static_assert(sizeof(idle_state_s) == 44);
2024-09-05 17:26:28 -07:00
// end
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/idle_state.txt