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/electronic_throttle.txt
// by class com.rusefi.output.CHeaderConsumer
// begin
# pragma once
# include "rusefi_types.h"
// start of electronic_throttle_s
struct electronic_throttle_s {
/**
* " ETB: target with idle "
2024-12-11 16:20:01 -08:00
* units : %
2024-09-05 17:26:28 -07:00
* offset 0
*/
float targetWithIdlePosition = ( float ) 0 ;
/**
* " ETB: trim "
* offset 4
*/
float trim = ( float ) 0 ;
/**
* " ETB: luaAdjustment "
2024-12-11 16:20:01 -08:00
* units : %
2024-09-05 17:26:28 -07:00
* offset 8
*/
float luaAdjustment = ( float ) 0 ;
/**
* " DC: wastegatePosition "
2024-12-11 16:20:01 -08:00
* units : %
2024-09-05 17:26:28 -07:00
* offset 12
*/
float m_wastegatePosition = ( float ) 0 ;
/**
* offset 16
*/
percent_t etbFeedForward = ( percent_t ) 0 ;
/**
* offset 20
*/
float etbIntegralError = ( float ) 0 ;
/**
* ETB : target for current pedal
* units : %
* offset 24
*/
float etbCurrentTarget = ( float ) 0 ;
/**
2024-12-11 16:20:01 -08:00
* Adjusted target
2024-09-05 17:26:28 -07:00
* units : %
* offset 28
*/
2024-12-11 16:20:01 -08:00
scaled_channel < int16_t , 100 , 1 > m_adjustedTarget = ( int16_t ) 0 ;
/**
* need 4 byte alignment
* units : units
* offset 30
*/
2025-01-01 16:18:59 -08:00
uint8_t alignmentFill_at_30 [ 2 ] = { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 0 */
bool etbRevLimitActive : 1 { } ;
/**
offset 32 bit 1 */
bool jamDetected : 1 { } ;
/**
offset 32 bit 2 */
2024-11-09 16:20:25 -08:00
bool validPlantPosition : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 3 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_3 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 4 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_4 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 5 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_5 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 6 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_6 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 7 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_7 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 8 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_8 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 9 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_9 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 10 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_10 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 11 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_11 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 12 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_12 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 13 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_13 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 14 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_14 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 15 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_15 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 16 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_16 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 17 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_17 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 18 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_18 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 19 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_19 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 20 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_20 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 21 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_21 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 22 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_22 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 23 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_23 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 24 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_24 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 25 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_25 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 26 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_26 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 27 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_27 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 28 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_28 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 29 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_29 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 30 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_30 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
offset 32 bit 31 */
2024-12-11 16:20:01 -08:00
bool unusedBit_12_31 : 1 { } ;
2024-09-05 17:26:28 -07:00
/**
* " ETB TPS error counter "
* units : count
2024-09-18 17:18:13 -07:00
* offset 36
2024-09-05 17:26:28 -07:00
*/
uint16_t etbTpsErrorCounter = ( uint16_t ) 0 ;
/**
* " ETB pedal error counter "
* units : count
2024-09-18 17:18:13 -07:00
* offset 38
2024-09-05 17:26:28 -07:00
*/
uint16_t etbPpsErrorCounter = ( uint16_t ) 0 ;
/**
2024-09-18 17:18:13 -07:00
* offset 40
2024-09-05 17:26:28 -07:00
*/
int8_t etbErrorCode = ( int8_t ) 0 ;
2024-11-02 10:55:36 -07:00
/**
* offset 41
*/
int8_t etbErrorCodeBlinker = ( int8_t ) 0 ;
2024-09-05 17:26:28 -07:00
/**
* ETB traction control
* units : %
2024-11-02 10:55:36 -07:00
* offset 42
2024-09-05 17:26:28 -07:00
*/
int8_t tcEtbDrop = ( int8_t ) 0 ;
2024-11-02 10:55:36 -07:00
/**
* need 4 byte alignment
* units : units
* offset 43
*/
2025-01-01 16:18:59 -08:00
uint8_t alignmentFill_at_43 [ 1 ] = { } ;
2024-09-05 17:26:28 -07:00
/**
* ETB jam timer
* units : sec
2024-11-02 10:55:36 -07:00
* offset 44
2024-09-05 17:26:28 -07:00
*/
scaled_channel < uint16_t , 100 , 1 > jamTimer = ( uint16_t ) 0 ;
/**
* ETB with adjustments
* units : %
2024-11-02 10:55:36 -07:00
* offset 46
2024-09-05 17:26:28 -07:00
*/
int8_t adjustedEtbTarget = ( int8_t ) 0 ;
/**
2024-11-02 10:55:36 -07:00
* offset 47
2024-09-05 17:26:28 -07:00
*/
2024-11-09 16:20:25 -08:00
uint8_t state = ( uint8_t ) 0 ;
2024-09-05 17:26:28 -07:00
} ;
2024-09-18 17:18:13 -07:00
static_assert ( sizeof ( electronic_throttle_s ) = = 48 ) ;
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/electronic_throttle.txt