Skip to content

Commit

Permalink
[FIX] Car D reverse direction
Browse files Browse the repository at this point in the history
  • Loading branch information
otischung committed Nov 27, 2023
1 parent 2ee3178 commit 85543af
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pros_car_py/pros_car_py/carD_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def handle_key_w(self, vel: float = 10):
def handle_key_a(self, vel: float = 10):
# Your action for the 'a' key here
self.stdscr.addstr(f"car go left")
self._vel1 = -vel # rad/s
self._vel2 = vel # rad/s
self._vel3 = vel # rad/s
self._vel4 = -vel # rad/s
self._vel1 = vel # rad/s
self._vel2 = -vel # rad/s
self._vel3 = -vel # rad/s
self._vel4 = vel # rad/s

pass

Expand All @@ -177,10 +177,10 @@ def handle_key_s(self, vel: float = 10):

def handle_key_d(self, vel: float = 10):
self.stdscr.addstr(f"car go right")
self._vel1 = vel # rad/s
self._vel2 = -vel # rad/s
self._vel3 = -vel # rad/s
self._vel4 = vel # rad/s
self._vel1 = -vel # rad/s
self._vel2 = vel # rad/s
self._vel3 = vel # rad/s
self._vel4 = -vel # rad/s
pass

def handle_key_e(self, vel: float = 10):
Expand Down

0 comments on commit 85543af

Please sign in to comment.