ref: comment output
This commit is contained in:
@@ -86,16 +86,16 @@ class Simulator:
|
||||
action.click_and_hold()
|
||||
|
||||
self.angle += dangle
|
||||
print(f" [Simulator] angle: {self.angle / math.pi * 180:.1f}°")
|
||||
# print(f" [Simulator] angle: {self.angle / math.pi * 180:.1f}°")
|
||||
velocity = max(velocity, 10)
|
||||
dx = math.cos(math.pi / 2 + self.angle) * velocity
|
||||
dy = math.sin(math.pi / 2 + self.angle) * velocity
|
||||
print(" [Simulator] dx, dy:", [dx, dy])
|
||||
# print(" [Simulator] dx, dy:", [dx, dy])
|
||||
self.update_trajectory(dx, dy)
|
||||
action.move_by_offset(-dx, dy)
|
||||
action.release()
|
||||
action.perform()
|
||||
print(f" [Simulator] Position: {self.current_x}, {self.current_y}")
|
||||
# print(f" [Simulator] Position: {self.current_x}, {self.current_y}")
|
||||
|
||||
def get_photo(self) -> Image.Image:
|
||||
png = self.yandexMap.driver.get_screenshot_as_png()
|
||||
@@ -120,7 +120,7 @@ class Simulator:
|
||||
signal = self.operatorPilot.act()
|
||||
if signal is None:
|
||||
self.mode = SimMode.AUTONOME
|
||||
print("Режим возвращения домой!")
|
||||
# print("Режим возвращения домой!")
|
||||
|
||||
if self.mode == SimMode.AUTONOME:
|
||||
signal = self.autonomePilot.act()
|
||||
|
||||
Reference in New Issue
Block a user