2024-09-03 07:14:47 -07:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/electronic_throttle.txt
2022-04-14 12:25:01 -07:00
// by class com.rusefi.output.CHeaderConsumer
// begin
# pragma once
# include "rusefi_types.h"
// start of electronic_throttle_s
struct electronic_throttle_s {
/**
2024-06-17 18:51:36 -07:00
* " ETB: target with idle "
2024-01-03 12:32:11 -08:00
* units : per
2022-04-14 12:25:01 -07:00
* offset 0
*/
2024-06-17 18:51:36 -07:00
float targetWithIdlePosition = ( float ) 0 ;
2022-04-14 12:25:01 -07:00
/**
2022-11-22 17:42:21 -08:00
* " ETB: trim "
2022-04-14 12:25:01 -07:00
* offset 4
*/
float trim = ( float ) 0 ;
/**
2022-11-22 17:42:21 -08:00
* " ETB: luaAdjustment "
2024-01-03 12:32:11 -08:00
* units : per
2022-04-14 12:25:01 -07:00
* offset 8
*/
float luaAdjustment = ( float ) 0 ;
2022-06-29 00:27:51 -07:00
/**
2023-02-17 19:21:04 -08:00
* " DC: wastegatePosition "
2024-01-03 12:32:11 -08:00
* units : per
2022-06-29 00:27:51 -07:00
* offset 12
*/
2023-02-17 19:21:04 -08:00
float m_wastegatePosition = ( float ) 0 ;
2022-06-29 00:27:51 -07:00
/**
* offset 16
*/
2023-02-17 19:21:04 -08:00
percent_t etbFeedForward = ( percent_t ) 0 ;
/**
* offset 20
*/
2022-06-29 00:27:51 -07:00
float etbIntegralError = ( float ) 0 ;
/**
2024-06-17 18:51:36 -07:00
* ETB : target for current pedal
2024-01-03 12:32:11 -08:00
* units : %
2023-02-17 19:21:04 -08:00
* offset 24
2022-06-29 00:27:51 -07:00
*/
float etbCurrentTarget = ( float ) 0 ;
2022-08-25 18:09:10 -07:00
/**
2024-01-03 12:32:11 -08:00
* units : %
2023-02-17 19:21:04 -08:00
* offset 28
2022-11-22 17:42:21 -08:00
*/
float etbCurrentAdjustedTarget = ( float ) 0 ;
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 0 */
2022-08-25 18:09:10 -07:00
bool etbRevLimitActive : 1 { } ;
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 1 */
2023-01-10 13:35:32 -08:00
bool jamDetected : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 2 */
2024-11-08 17:57:02 -08:00
bool validPlantPosition : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 3 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_3 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 4 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_4 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 5 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_5 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 6 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_6 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 7 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_7 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 8 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_8 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 9 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_9 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 10 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_10 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 11 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_11 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 12 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_12 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 13 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_13 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 14 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_14 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 15 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_15 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 16 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_16 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 17 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_17 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 18 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_18 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 19 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_19 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 20 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_20 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 21 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_21 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 22 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_22 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 23 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_23 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 24 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_24 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 25 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_25 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 26 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_26 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 27 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_27 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 28 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_28 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 29 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_29 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 30 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_30 : 1 { } ;
2022-08-25 18:09:10 -07:00
/**
2023-02-17 19:21:04 -08:00
offset 32 bit 31 */
2024-11-08 17:24:35 -08:00
bool unusedBit_11_31 : 1 { } ;
2022-11-28 17:18:34 -08:00
/**
2022-11-30 19:35:46 -08:00
* " ETB TPS error counter "
2024-01-03 12:32:11 -08:00
* units : count
2024-09-17 21:36:33 -07:00
* offset 36
2022-11-28 17:18:34 -08:00
*/
2022-11-30 19:35:46 -08:00
uint16_t etbTpsErrorCounter = ( uint16_t ) 0 ;
2022-11-29 19:25:45 -08:00
/**
2022-11-30 19:35:46 -08:00
* " ETB pedal error counter "
2024-01-03 12:32:11 -08:00
* units : count
2024-09-17 21:36:33 -07:00
* offset 38
2022-11-29 19:25:45 -08:00
*/
2022-11-30 19:35:46 -08:00
uint16_t etbPpsErrorCounter = ( uint16_t ) 0 ;
/**
2024-09-17 21:36:33 -07:00
* offset 40
2022-11-30 19:35:46 -08:00
*/
2022-11-29 19:25:45 -08:00
int8_t etbErrorCode = ( int8_t ) 0 ;
2024-10-31 14:59:36 -07:00
/**
* offset 41
*/
int8_t etbErrorCodeBlinker = ( int8_t ) 0 ;
2022-11-27 19:49:25 -08:00
/**
2024-09-03 07:14:47 -07:00
* ETB traction control
* units : %
2024-10-31 14:59:36 -07:00
* offset 42
2022-11-27 19:49:25 -08:00
*/
2023-12-31 12:19:26 -08:00
int8_t tcEtbDrop = ( int8_t ) 0 ;
2024-10-31 14:59:36 -07:00
/**
* need 4 byte alignment
* units : units
* offset 43
*/
uint8_t alignmentFill_at_43 [ 1 ] ;
2023-01-10 13:35:32 -08:00
/**
* ETB jam timer
2024-01-03 12:32:11 -08:00
* units : sec
2024-10-31 14:59:36 -07:00
* offset 44
2023-01-10 13:35:32 -08:00
*/
scaled_channel < uint16_t , 100 , 1 > jamTimer = ( uint16_t ) 0 ;
2024-09-03 07:14:47 -07:00
/**
* ETB with adjustments
* units : %
2024-10-31 14:59:36 -07:00
* offset 46
2024-09-03 07:14:47 -07:00
*/
int8_t adjustedEtbTarget = ( int8_t ) 0 ;
/**
2024-10-31 14:59:36 -07:00
* offset 47
2024-09-03 07:14:47 -07:00
*/
2024-11-08 15:27:33 -08:00
uint8_t state = ( uint8_t ) 0 ;
2022-04-14 12:25:01 -07:00
} ;
2024-09-17 21:36:33 -07:00
static_assert ( sizeof ( electronic_throttle_s ) = = 48 ) ;
2022-04-14 12:25:01 -07:00
// end
2024-09-03 07:14:47 -07:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/electronic_throttle.txt