Skip to content

Commit 97bf224

Browse files
authored
fix rwd (#33)
1 parent 57d6741 commit 97bf224

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

forza.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def shifting(self, iteration, fdp):
267267
# if the car is RWD, then up gear when at gear 1
268268
if self.car_drivetrain == 1 and gear == 1:
269269
self.logger.debug(f'[{iteration}] up shift triggerred since RWD at gear 1. rpm {rpm}, speed {speed}, slip {slip}, accel {accel}')
270+
gear_helper.up_shift_handle(gear, self)
270271
fired = True
271272
elif rpm > target_rpm and slip < 1 and accel and speed > target_up_speed:
272273
self.logger.debug(f'[{iteration}] up shift triggerred. rpm > target rmp({rpm} > {target_rpm}), speed > target up speed ({speed} > {target_up_speed}), slip {slip}, accel {accel}')

0 commit comments

Comments
 (0)