ref: comment output

This commit is contained in:
2025-12-19 22:35:49 +03:00
parent f0ac60c8ef
commit d04d4a0cdc
3 changed files with 64 additions and 26 deletions

View File

@@ -87,7 +87,7 @@ def main():
vis_manager = VisualizationManager()
width, height = yandexMap.get_size()
print(width, height)
# print(width, height)
points_coords = np.array(list(map(lambda p: [
(p[0] - points[0][0]) * width, (points[0][1] - p[1]) * height
], points)))
@@ -104,10 +104,14 @@ def main():
vis_manager.set_target_points(points_coords)
proc_time = np.array([])
for i in range(10000000000):
print(f"Image #{i}")
photo = simulator.get_photo()
command = pilot.handle(photo)
proc_time = np.append(proc_time, command.proccessing_time)
# Save Image
photo.save(Path('images') / f"photo_{i}.png")
@@ -128,6 +132,9 @@ def main():
vis_manager.update_display()
vis_manager.pause(0.2)
last_proc_times = proc_time[-10:]
# print("Average FPS:", 1 / last_proc_times.mean())
vis_manager.show_final()
if __name__ == "__main__":