Skip to content

Commit 4e6496e

Browse files
committed
Reversed APPS/ETC direction to match motor
1 parent 1e48c4f commit 4e6496e

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

APPSETC/main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ EventQueue queue(32*EVENTS_EVENT_SIZE);
4848

4949
uint8_t mbbAlive = 0;
5050
bool powerRdy = Motor_On;
51-
bool motorReverse = false;
52-
bool motorForward = true;
53-
uint16_t torqueDemand;
54-
uint16_t maxSpeed = MAXSPEED;
51+
bool motorReverse = true;
52+
bool motorForward = false;
53+
int16_t torqueDemand;
54+
int16_t maxSpeed = -MAXSPEED;
5555

5656
void runRTDS() {
5757
printf("RUNNING RTDS");
@@ -247,14 +247,14 @@ int main()
247247
//Sync message (ID is 0x80) (Msg is 0x00 100 ms freq)
248248

249249
powerRdy = Motor_On;
250-
motorReverse = false;
251-
motorForward = true;
250+
motorReverse = true;
251+
motorForward = false;
252252
torqueDemand = -100 * pedalTravel; // Dunno if it should be between 0 and 1 or 0 and 100
253253
maxSpeed = -MAXSPEED;
254254
} else {
255255
powerRdy = false;
256-
motorReverse = false;
257-
motorForward = true;
256+
motorReverse = true;
257+
motorForward = false;
258258
torqueDemand = 0; // Dunno if it should be between 0 and 1 or 0 and 100
259259
maxSpeed = -MAXSPEED;
260260
printStatusMessage();

bms/.mbed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
ROOT=.
22
TARGET=NUCLEO_L432KC
33
TARGET_CODE=0770
4-
TARGET_SERIAL=0668FF534871754867253623

0 commit comments

Comments
 (0)