fixes
This commit is contained in:
@@ -312,10 +312,10 @@ class AutoPilot(Pilot):
|
||||
# Пытаемся найти ориентир на картинке:
|
||||
self.prev_chunk = current_chunk
|
||||
# Для улучшения среднего FPS
|
||||
if self.frame_count % 5 == 0:
|
||||
pos_by_chunk = self.get_position_by_chunk()
|
||||
if pos_by_chunk is not None:
|
||||
self.pos = pos_by_chunk
|
||||
# if self.frame_count % 5 == 0:
|
||||
# pos_by_chunk = self.get_position_by_chunk()
|
||||
# if pos_by_chunk is not None:
|
||||
# self.pos = pos_by_chunk
|
||||
|
||||
command = self.make_command()
|
||||
self.timer.reset()
|
||||
|
||||
Reference in New Issue
Block a user