Skip to content

Commit

Permalink
Repaired APPS/ETC libarary and updated CAN IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayamelon committed Jun 5, 2024
1 parent 07f7797 commit 1e48c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion APPSETC/.mbed
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ROOT=.
TARGET=NUCLEO_L432KC
TARGET_CODE=0770
TARGET_SERIAL=0668FF534871754867253623
8 changes: 4 additions & 4 deletions APPSETC/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ int main()

//TODO read ts rdy signal
switch (id) {
case 0x182:
case 0x183:
if (data[3] & 0x4) {
TS_Ready = true;
} else {
Expand All @@ -249,14 +249,14 @@ int main()
powerRdy = Motor_On;
motorReverse = false;
motorForward = true;
torqueDemand = 100 * pedalTravel; // Dunno if it should be between 0 and 1 or 0 and 100
maxSpeed = MAXSPEED;
torqueDemand = -100 * pedalTravel; // Dunno if it should be between 0 and 1 or 0 and 100
maxSpeed = -MAXSPEED;
} else {
powerRdy = false;
motorReverse = false;
motorForward = true;
torqueDemand = 0; // Dunno if it should be between 0 and 1 or 0 and 100
maxSpeed = MAXSPEED;
maxSpeed = -MAXSPEED;
printStatusMessage();
}

Expand Down

0 comments on commit 1e48c4f

Please sign in to comment.