Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JMUJacart committed Aug 3, 2022
1 parent 1bb6da9 commit 574f871
Show file tree
Hide file tree
Showing 4 changed files with 5,972 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cart_endpoints/scripts/motor_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def endpoint_calc(self):
def pack_send(self, throttle, brake, steer_angle):
data = bytearray(b'\x00' * 5)
bitstruct.pack_into('u8u8u8u8u8', data, 0, 42, 21, abs(throttle), brake, steer_angle + 10)
self.speed_ser.write(data)
self.arduino_ser.write(data)

if __name__ == "__main__":
try:
Expand Down
Loading

0 comments on commit 574f871

Please sign in to comment.