default config, UI tweaks (#2444)
* s * fix this while we're at it Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
37038eaaa2
commit
b087f328f7
|
@ -16,6 +16,7 @@
|
|||
#define ts_show_tunerstudio_port false
|
||||
#define ts_show_can2 false
|
||||
#define ts_show_software_knock true
|
||||
#define ts_show_hardware_simulator false
|
||||
|
||||
#define show_test_presets false
|
||||
#define show_Frankenso_presets false
|
||||
|
|
|
@ -44,22 +44,9 @@ void setBoardConfigurationOverrides(void) {
|
|||
|
||||
// NOT USED
|
||||
engineConfiguration->externalKnockSenseAdc = EFI_ADC_NONE;
|
||||
engineConfiguration->displayMode = DM_NONE;
|
||||
engineConfiguration->HD44780_rs = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_e = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db4 = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db5 = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db6 = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db7 = GPIO_UNASSIGNED;
|
||||
for (int i = 0; i < DIGIPOT_COUNT; i++) {
|
||||
engineConfiguration->digitalPotentiometerChipSelect[i] = GPIO_UNASSIGNED;
|
||||
}
|
||||
engineConfiguration->triggerSimulatorPins[1] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->triggerSimulatorPins[2] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->triggerSimulatorPinModes[1] = OM_DEFAULT;
|
||||
engineConfiguration->triggerSimulatorPinModes[2] = OM_DEFAULT;
|
||||
engineConfiguration->digitalPotentiometerSpiDevice = SPI_NONE;
|
||||
engineConfiguration->max31855spiDevice = SPI_NONE;
|
||||
engineConfiguration->warningLedPin = GPIO_UNASSIGNED;
|
||||
engineConfiguration->runningLedPin = GPIO_UNASSIGNED;
|
||||
engineConfiguration->useStepperIdle = false;
|
||||
|
@ -67,10 +54,6 @@ void setBoardConfigurationOverrides(void) {
|
|||
engineConfiguration->idle.stepperStepPin = GPIO_UNASSIGNED;
|
||||
engineConfiguration->stepperEnablePin = GPIO_UNASSIGNED;
|
||||
engineConfiguration->stepperEnablePinMode = OM_DEFAULT;
|
||||
engineConfiguration->injectionPins[8] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->injectionPins[9] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->injectionPins[10] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->injectionPins[11] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->isHip9011Enabled = false;
|
||||
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#define ts_show_main_relay_microRusEFI_message true
|
||||
#define ts_show_can2 false
|
||||
#define ts_show_software_knock true
|
||||
#define ts_show_hardware_simulator false
|
||||
|
||||
#define show_test_presets false
|
||||
#define show_Frankenso_presets false
|
||||
|
|
|
@ -53,14 +53,6 @@ void setBoardConfigurationOverrides(void) {
|
|||
engineConfiguration->throttlePedalPositionAdcChannel = EFI_ADC_NONE;
|
||||
|
||||
// not used
|
||||
engineConfiguration->externalKnockSenseAdc = EFI_ADC_NONE;
|
||||
engineConfiguration->displayMode = DM_NONE;
|
||||
engineConfiguration->HD44780_rs = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_e = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db4 = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db5 = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db6 = GPIO_UNASSIGNED;
|
||||
engineConfiguration->HD44780_db7 = GPIO_UNASSIGNED;
|
||||
for (int i = 0; i < DIGIPOT_COUNT ; i++) {
|
||||
engineConfiguration->digitalPotentiometerChipSelect[i] = GPIO_UNASSIGNED;
|
||||
}
|
||||
|
@ -70,9 +62,6 @@ void setBoardConfigurationOverrides(void) {
|
|||
engineConfiguration->triggerSimulatorPinModes[2] = OM_DEFAULT;
|
||||
engineConfiguration->vehicleSpeedSensorInputPin = GPIO_UNASSIGNED;
|
||||
|
||||
engineConfiguration->digitalPotentiometerSpiDevice = SPI_NONE;
|
||||
engineConfiguration->max31855spiDevice = SPI_NONE;
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
engineConfiguration->is_enabled_spi_1 = false;
|
||||
engineConfiguration->is_enabled_spi_2 = false;
|
||||
|
|
|
@ -217,9 +217,6 @@ void setBoardConfigurationOverrides(void) {
|
|||
engineConfiguration->triggerSimulatorPinModes[2] = OM_DEFAULT;
|
||||
engineConfiguration->vehicleSpeedSensorInputPin = GPIO_UNASSIGNED;
|
||||
|
||||
engineConfiguration->digitalPotentiometerSpiDevice = SPI_NONE;
|
||||
engineConfiguration->max31855spiDevice = SPI_NONE;
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
engineConfiguration->is_enabled_spi_1 = true;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#define ts_show_tunerstudio_port false
|
||||
#define ts_show_can2 false
|
||||
#define ts_show_software_knock true
|
||||
#define ts_show_hardware_simulator false
|
||||
|
||||
#define show_Frankenso_presets false
|
||||
#define show_Hellen_presets false
|
||||
|
|
|
@ -166,9 +166,6 @@ void setBoardConfigurationOverrides(void) {
|
|||
engineConfiguration->digitalPotentiometerChipSelect[3] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->vehicleSpeedSensorInputPin = GPIO_UNASSIGNED;
|
||||
|
||||
engineConfiguration->digitalPotentiometerSpiDevice = SPI_NONE;
|
||||
engineConfiguration->max31855spiDevice = SPI_NONE;
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
engineConfiguration->is_enabled_spi_1 = true;
|
||||
|
@ -229,10 +226,6 @@ void setBoardConfigurationOverrides(void) {
|
|||
engineConfiguration->triggerSimulatorPinModes[1] = OM_DEFAULT;
|
||||
engineConfiguration->triggerSimulatorPinModes[2] = OM_DEFAULT;
|
||||
|
||||
engineConfiguration->logicAnalyzerPins[0] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->logicAnalyzerPins[1] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->logicAnalyzerPins[2] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->logicAnalyzerPins[3] = GPIO_UNASSIGNED;
|
||||
//!!!!!!!!!!!!!!!!!!!
|
||||
//engineConfiguration->silentTriggerError = true;
|
||||
|
||||
|
|
|
@ -51,11 +51,6 @@ void setTestEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
engineConfiguration->ignitionPins[3] = GPIO_UNASSIGNED; // #4
|
||||
engineConfiguration->ignitionPins[4] = GPIO_UNASSIGNED; // #5
|
||||
engineConfiguration->ignitionPins[5] = GPIO_UNASSIGNED; // #6
|
||||
|
||||
engineConfiguration->logicAnalyzerPins[0] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->logicAnalyzerPins[1] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->logicAnalyzerPins[2] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->logicAnalyzerPins[3] = GPIO_UNASSIGNED;
|
||||
}
|
||||
|
||||
void setTestVVTEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
|
|
|
@ -1093,9 +1093,6 @@ void setDefaultFrankensoConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
engineConfiguration->triggerInputPins[0] = GPIOC_6;
|
||||
engineConfiguration->triggerInputPins[1] = GPIOA_5;
|
||||
|
||||
//engineConfiguration->logicAnalyzerPins[1] = GPIOE_5; // GPIOE_5 is a popular option (if available)
|
||||
|
||||
|
||||
// set this to SPI_DEVICE_3 to enable stimulation
|
||||
//engineConfiguration->digitalPotentiometerSpiDevice = SPI_DEVICE_3;
|
||||
engineConfiguration->digitalPotentiometerChipSelect[0] = GPIOD_7;
|
||||
|
|
|
@ -89,7 +89,7 @@ static void runBench(brain_pin_e brainPin, OutputPin *output, float delayMs, flo
|
|||
return;
|
||||
}
|
||||
|
||||
scheduleMsg(logger, "Running bench: ON_TIME=%.2f us OFF_TIME=%.2f us Counter=%d", onTimeUs, offTimeUs, count);
|
||||
scheduleMsg(logger, "Running bench: ON_TIME=%d us OFF_TIME=%d us Counter=%d", onTimeUs, offTimeUs, count);
|
||||
scheduleMsg(logger, "output on %s", hwPortname(brainPin));
|
||||
|
||||
chThdSleepMicroseconds(delayUs);
|
||||
|
|
|
@ -1954,6 +1954,7 @@ end_struct
|
|||
#define ts_show_auxserial_pins true
|
||||
#define ts_show_can2 true
|
||||
#define ts_show_software_knock false
|
||||
#define ts_show_hardware_simulator true
|
||||
|
||||
#define show_test_presets true
|
||||
#define show_Frankenso_presets true
|
||||
|
|
|
@ -3391,7 +3391,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
|
|||
dialog = ecuStimulator, "ECU stimulator"
|
||||
field = "Trigger Simulator", triggerSimulatorFrequency
|
||||
commandButton = "Enable internal trigger simulation", cmd_enable_self_stim
|
||||
commandButton = "Enable external trigger simulation", cmd_enable_ext_stim
|
||||
commandButton = "Enable external trigger simulation", cmd_enable_ext_stim @@if_ts_show_hardware_simulator
|
||||
commandButton = "Disable trigger simulation", cmd_disable_self_stim
|
||||
; field = ""
|
||||
; field = "digipot spi", digitalPotentiometerSpiDevice
|
||||
|
@ -3399,13 +3399,13 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
|
|||
; field = "digipot CS #1", digitalPotentiometerChipSelect2
|
||||
; field = "digipot CS #2", digitalPotentiometerChipSelect3
|
||||
; field = "digipot CS #3", digitalPotentiometerChipSelect4
|
||||
field = ""
|
||||
field = "trigger stimulator pin #1", triggerSimulatorPins1
|
||||
field = "trigger stimulator pin mode #1", triggerSimulatorPinModes1
|
||||
field = "trigger stimulator pin #2", triggerSimulatorPins2
|
||||
field = "trigger stimulator pin mode #2", triggerSimulatorPinModes2
|
||||
field = "trigger stimulator pin #3", triggerSimulatorPins3
|
||||
field = "trigger stimulator pin mode #3", triggerSimulatorPinModes3
|
||||
field = ""@@if_ts_show_hardware_simulator
|
||||
field = "trigger stimulator pin #1", triggerSimulatorPins1@@if_ts_show_hardware_simulator
|
||||
field = "trigger stimulator pin mode #1", triggerSimulatorPinModes1@@if_ts_show_hardware_simulator
|
||||
field = "trigger stimulator pin #2", triggerSimulatorPins2@@if_ts_show_hardware_simulator
|
||||
field = "trigger stimulator pin mode #2", triggerSimulatorPinModes2@@if_ts_show_hardware_simulator
|
||||
field = "trigger stimulator pin #3", triggerSimulatorPins3@@if_ts_show_hardware_simulator
|
||||
field = "trigger stimulator pin mode #3", triggerSimulatorPinModes3@@if_ts_show_hardware_simulator
|
||||
field = ""
|
||||
field = "Logic input channel 1", logicAnalyzerPins1
|
||||
field = "Logic input channel 2", logicAnalyzerPins2
|
||||
|
|
Loading…
Reference in New Issue