fix: change coordinate system of simulator and autopilot, reduce approximation error

This commit is contained in:
2025-10-07 18:25:09 +03:00
parent 520a333812
commit f0ac60c8ef
5 changed files with 272 additions and 113 deletions

View File

@@ -29,10 +29,10 @@ def main():
# Получаем траекторию от пользователя
points = get_trajectory_points('map.jpg')
print(points)
# points = [np.float64(0.5443937502226799), np.float64(0.4030424838774785)], [np.float64(0.18517133490120316), np.float64(0.4586935604608052)], [np.float64(0.1641887171838272), np.float64(0.5586383510594329)], [np.float64(0.587198290366127),
# np.float64(0.5699957136274587)]
# points = [[np.float64(0.4931961629922826), np.float64(0.4439289891223716)], [np.float64(0.5099822571661834), np.float64(0.44165751660876645)], [np.float64(0.5083036477487933), np.float64(0.4564220879472001)], [np.float64(0.525089741922694), np.float64(0.4586935604608052)]]
# points = [[np.float64(0.5028362002950056), np.float64(0.508463417020251)], [np.float64(0.5079239482442035), np.float64(0.508463417020251)], [np.float64(0.5045321162780716), np.float64(0.5210964284169014)], [np.float64(0.509054558899581), np.float64(0.5200436774671806)]]
# print(points)
# Для каждой точки сделаем приближенный снимок
yandexMap = YandexMap()
@@ -105,6 +105,7 @@ def main():
vis_manager.set_target_points(points_coords)
for i in range(10000000000):
print(f"Image #{i}")
photo = simulator.get_photo()
command = pilot.handle(photo)