External aem wideband does not work over CAN wbo #7048

This commit is contained in:
rusefillc 2024-11-06 08:39:38 -05:00
parent d8e0d51f05
commit 79cfb0a5f3
3 changed files with 13 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#include "advance_map.h"
#include "init.h"
#include "rusefi_wideband.h"
#include "aux_valves.h"
#include "map_averaging.h"
#include "perf_trace.h"
@ -140,6 +141,16 @@ void Engine::updateTriggerWaveform() {
void Engine::periodicSlowCallback() {
ScopePerf perf(PE::EnginePeriodicSlowCallback);
#if EFI_CAN_SUPPORT
if (engineConfiguration->suppressWboWorkaround7048) {
static Timer canBusWboSetIndex;
if (canBusWboSetIndex.getElapsedSeconds() > 1) {
canBusWboSetIndex.reset();
setWidebandOffset(3);
}
}
#endif // EFI_CAN_SUPPORT
#if EFI_SHAFT_POSITION_INPUT
// Re-read config in case it's changed
triggerCentral.primaryTriggerConfiguration.update();

View File

@ -957,7 +957,7 @@ custom maf_sensor_type_e 1 bits, S08, @OFFSET@, [0:1], @@maf_sensor_type_e_enum@
bit canInputBCM
bit consumeObdSensors;This property is useful if using rusEFI as TCM or BCM only
bit enableCanVss;Read VSS from OEM CAN bus according to selected CAN vehicle configuration.
bit unusedSnableInnovateLC2
bit suppressWboWorkaround7048
bit showHumanReadableWarning
bit stftIgnoreErrorMagnitude;If enabled, adjust at a constant rate instead of a rate proportional to the current lambda error. This mode may be easier to tune, and more tolerant of sensor noise.
bit vvtBooleanForVerySpecialCases

View File

@ -3615,6 +3615,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "Wideband CAN bus", widebandOnSecondBus@@if_ts_show_wbo_canbus_index
field = "Swap channels 1 and 2", flipWboChannels, flipWboChannels
field = "Force O2 sensor heating", forceO2Heating
field = "Suppress on-board WBO", suppressWboWorkaround7048
dialog = egoSettings, "", yAxis
panel = uegoCan