rusefi/firmware/controllers/actuators/electronic_throttle_generat...

176 lines
3.3 KiB
C
Raw Normal View History

2023-01-10 13:35:32 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/actuators/electronic_throttle.txt Tue Jan 10 21:34:44 UTC 2023
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
#include "rusefi_types.h"
// start of electronic_throttle_s
struct electronic_throttle_s {
/**
2022-11-22 17:42:21 -08:00
* "ETB: idlePosition"
* offset 0
*/
float idlePosition = (float)0;
/**
2022-11-22 17:42:21 -08:00
* "ETB: trim"
* offset 4
*/
float trim = (float)0;
/**
2022-11-22 17:42:21 -08:00
* "ETB: luaAdjustment"
* offset 8
*/
float luaAdjustment = (float)0;
/**
* offset 12
*/
percent_t etbFeedForward = (percent_t)0;
/**
* offset 16
*/
float etbIntegralError = (float)0;
/**
%
* offset 20
*/
float etbCurrentTarget = (float)0;
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
%
* offset 24
*/
float etbCurrentAdjustedTarget = (float)0;
/**
offset 28 bit 0 */
2022-08-25 18:09:10 -07:00
bool etbRevLimitActive : 1 {};
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 1 */
2023-01-10 13:35:32 -08:00
bool jamDetected : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 2 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_2 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 3 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_3 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 4 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_4 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 5 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_5 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 6 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_6 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 7 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_7 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 8 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_8 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 9 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_9 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 10 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_10 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 11 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_11 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 12 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_12 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 13 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_13 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 14 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_14 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 15 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_15 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 16 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_16 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 17 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_17 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 18 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_18 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 19 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_19 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 20 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_20 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 21 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_21 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 22 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_22 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 23 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_23 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 24 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_24 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 25 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_25 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 26 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_26 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 27 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_27 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 28 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_28 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 29 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_29 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 30 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_30 : 1 {};
2022-08-25 18:09:10 -07:00
/**
2022-11-22 17:42:21 -08:00
offset 28 bit 31 */
2023-01-10 13:35:32 -08:00
bool unusedBit_9_31 : 1 {};
2022-11-27 15:28:40 -08:00
/**
* offset 32
*/
float etbDutyRateOfChange = (float)0;
2022-11-27 19:49:25 -08:00
/**
* offset 36
*/
2022-11-28 17:18:34 -08:00
float etbDutyAverage = (float)0;
/**
2022-11-30 19:35:46 -08:00
* "ETB TPS error counter"
2022-11-28 17:18:34 -08:00
* offset 40
*/
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"
2022-11-29 19:25:45 -08:00
* offset 42
*/
2022-11-30 19:35:46 -08:00
uint16_t etbPpsErrorCounter = (uint16_t)0;
/**
* offset 44
*/
2022-11-29 19:25:45 -08:00
int8_t etbErrorCode = (int8_t)0;
2022-11-27 19:49:25 -08:00
/**
* need 4 byte alignment
units
2022-11-30 19:35:46 -08:00
* offset 45
2022-11-27 19:49:25 -08:00
*/
2023-01-10 13:35:32 -08:00
uint8_t alignmentFill_at_45[1];
/**
* ETB jam timer
sec
* offset 46
*/
scaled_channel<uint16_t, 100, 1> jamTimer = (uint16_t)0;
};
2022-11-30 19:35:46 -08:00
static_assert(sizeof(electronic_throttle_s) == 48);
// end
2023-01-10 13:35:32 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/actuators/electronic_throttle.txt Tue Jan 10 21:34:44 UTC 2023