"different user levels in TS" idea #5154

This commit is contained in:
rusefillc 2023-03-07 10:40:56 -05:00
parent dc6f53bda5
commit c9d44c866e
3 changed files with 11 additions and 1 deletions

View File

@ -180,6 +180,12 @@ enum class CanGpioType : uint8_t {
MS = 2,
};
enum class UiMode : uint8_t {
FULL = 0,
INSTALLATION = 1,
TUNING = 2,
};
typedef enum __attribute__ ((__packed__)) {
/**
* GND for logical OFF, VCC for logical ON

View File

@ -304,6 +304,9 @@ custom SentEtbType 1 bits, S08, @OFFSET@, [0:1], @@SentEtbType_enum@@
#define CanGpioType_enum "None", "DRT protocol", "MS protocol"
custom CanGpioType 1 bits, S08, @OFFSET@, [0:1], @@CanGpioType_enum@@
#define UiMode_enum "Full", "Installation", "Tuning"
custom UiMode 1 bits, S08, @OFFSET@, [0:1], @@UiMode_enum@@
struct cranking_parameters_s
float baseFuel;Base mass of the per-cylinder fuel injected during cranking. This is then modified by the multipliers for CLT, IAT, TPS ect, to give the final cranking pulse width.\nA reasonable starting point is 60mg per liter per cylinder.\nex: 2 liter 4 cyl = 500cc/cyl, so 30mg cranking fuel.;"mg", 1, 0, 0, 500, 1
int16_t rpm;This sets the RPM limit below which the ECU will use cranking fuel and ignition logic, typically this is around 350-450rpm. \nset cranking_rpm X;"RPM", 1, 0, 0, 3000, 0
@ -1573,7 +1576,7 @@ pin_input_mode_e[LUA_DIGITAL_INPUT_COUNT iterate] luaDigitalInputPinModes;
uint16_t customSentTpsMax
uint16_t kLineBaudRate
CanGpioType canGpioType
uint8_t[1] unusedSpacingHere
UiMode uiMode
int16_t hpfpPeakPos;Crank angle ATDC of first lobe peak;"deg", 1, 0, -719, 719, 0
uint8_t[40] mainUnusedEnd;;"units", 1, 0, 0, 1, 0

View File

@ -4303,6 +4303,7 @@ dialog = tcuControls, "Transmission Settings"
field = "etbDutyShutdownThreshold", etbDutyShutdownThreshold
dialog = parkingLot, "Experimental/Broken"
field = uiMode, uiMode
field = kLineBaudRate, kLineBaudRate
field = canGpioType, canGpioType
field = "I understand ECU Locking", yesUnderstandLocking