Пример #1
0
 def drive(self, v: float, s: float) -> None:
     print(f'Setting velocity {Driving.to_can(int(v))}')
     self.drive_msg.velocity = Driving.to_can(int(v))
     print(f'Setting steering {Steering.to_can(int(s))}')
     self.drive_msg.steering = Steering.to_can(int(s))
Пример #2
0
 def steering_angle(self, steering: Union[int, float]) -> None:
     self.drive_msg.steering = Steering.to_can(int(steering))