File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
ROOT=.
2
2
TARGET=NUCLEO_L432KC
3
3
TARGET_CODE=0770
4
- TARGET_SERIAL=0668FF534871754867253623
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ int main()
224
224
225
225
// TODO read ts rdy signal
226
226
switch (id) {
227
- case 0x182 :
227
+ case 0x183 :
228
228
if (data[3 ] & 0x4 ) {
229
229
TS_Ready = true ;
230
230
} else {
@@ -249,14 +249,14 @@ int main()
249
249
powerRdy = Motor_On;
250
250
motorReverse = false ;
251
251
motorForward = true ;
252
- torqueDemand = 100 * pedalTravel; // Dunno if it should be between 0 and 1 or 0 and 100
253
- maxSpeed = MAXSPEED;
252
+ torqueDemand = - 100 * pedalTravel; // Dunno if it should be between 0 and 1 or 0 and 100
253
+ maxSpeed = - MAXSPEED;
254
254
} else {
255
255
powerRdy = false ;
256
256
motorReverse = false ;
257
257
motorForward = true ;
258
258
torqueDemand = 0 ; // Dunno if it should be between 0 and 1 or 0 and 100
259
- maxSpeed = MAXSPEED;
259
+ maxSpeed = - MAXSPEED;
260
260
printStatusMessage ();
261
261
}
262
262
You can’t perform that action at this time.
0 commit comments