Skip to content

Commit

Permalink
uaefi121-sbc
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Sep 12, 2024
1 parent e6282df commit 59adee7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion digital-inputs/firmware/can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static size_t outputCount = 0;
static size_t dcOutputsCount = 0;
static size_t lowSideOutputCount = 0;

static int boardId = 0;
int boardId = 0;

extern bool globalEverythingHappy;
extern bool isMuted;
Expand Down
22 changes: 8 additions & 14 deletions digital-inputs/firmware/test_logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,7 @@ BoardConfig boardConfigs[] = {
{ nullptr, 0, 0, 0 }, // { "AUXL1", 1.0f, 1.35f * ANALOG_L, 1.35f * ANALOG_H },
{ nullptr, 0, 0, 0 }, // { "AUXL2", 1.0f, 2.23f * ANALOG_L, 2.23f * ANALOG_H },
},
/* crank neg C19 goes to 24C for 2.5v virtual GND. Crank positive 22B with a 4.7K pull up to 5v */
.eventExpected = {/*crank*/false, false, /*cam1*/true, /*cam2*/true, false, false, /*vss*/true},
.eventExpected = {/*crank*/true, false, /*cam1*/false, /*cam2*/false, false, false, /*vss*/false},
.buttonExpected = {false, false, false},
.auxDigitalExpected = {false, false, false, false,
false, false, false, false},
Expand All @@ -684,20 +683,9 @@ BoardConfig boardConfigs[] = {
"49a INJ_6",
"50a INJ_7",
"51a INJ_8",
"14a LS1",
"15a LS2",
"16a LS3",
"88a LS4",
"ls5",
"ls6",
"high side",
"fuel pump",
"Coil 1",
"Coil 2",
"Coil 3",
"Coil 4",
"Coil 5",
"Coil 6",

},
.wboUnitsCount = 2,
.dcHackValue = 1,
Expand Down Expand Up @@ -905,6 +893,12 @@ size_t getBoardsCount() {
typedef void (*CanRequestSender) (int testLineIndex, bool value);

static int getCycleDurationMs() {
extern int boardId;
if (boardId == STATIC_BOARD_ID_UAEFU121_SBC) {
// real relay needs some time to click
return 100;
}

// if (currentBoard!=nullptr)

// .boardName
Expand Down

0 comments on commit 59adee7

Please sign in to comment.