Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
/ brainhack-24 Public archive
generated from TIL-24/til-24-base

Commit

Permalink
Increase turret rotation speed via pan_cannon method
Browse files Browse the repository at this point in the history
  • Loading branch information
tewenhao committed Jun 11, 2024
1 parent 6fdcd34 commit ee337f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autonomy/src/robot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def wait_for_action(action):

async def pan_cannon(self, change) -> None:
"""Pans the cannon in the horizontal direction"""
await RobotEnv.wait_for_action(self.robot.gimbal.move(yaw=change))
await RobotEnv.wait_for_action(self.robot.gimbal.move(yaw=change, yaw_speed=100))

async def reset_pan_cannon(self) -> None:
await RobotEnv.wait_for_action(self.robot.gimbal.moveto(yaw=0, pitch=15))
Expand Down

0 comments on commit ee337f2

Please sign in to comment.