From 2d2befbbfdf21a4d849556968e9e0fe13c4c651b Mon Sep 17 00:00:00 2001 From: Dlr Rpi Date: Thu, 6 Nov 2025 17:11:33 +0100 Subject: [PATCH] Debug --- simulation.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/simulation.py b/simulation.py index 789a645..571fc73 100644 --- a/simulation.py +++ b/simulation.py @@ -16,8 +16,8 @@ world = solar.World(board, tilt_deg=15) # The world is tilted 15 degrees around HEIGHT = 30 -source = solar.Source(world, pos=(-30, -50, 100)) -target = solar.Target(world, pos=(30, -50, 40)) +source = solar.Source(world, pos=(30, 50, 100)) +target = solar.Target(world, pos=(0, 0, 40)) # Create mirrors in a 3x2 grid for x in range(3): @@ -40,8 +40,10 @@ t = time.time() # Main try: while True: - source.move(10 * math.sin(a * t), 10 * math.cos(a * t)) + source.move(0, 0, 0.1) + #source.move(10 * math.sin(a * t), 10 * math.cos(a * t)) print(source.pos) + print(target.pos) world.update_mirrors_from_source_target(source, target) print_status()