This commit is contained in:
Dlr Rpi
2025-11-06 17:11:33 +01:00
parent 5188bf0f25
commit 2d2befbbfd

View File

@@ -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()