]> OzVa Git service - doomsday-clock/commitdiff
Added lighting cues JSON item in clock.json
authorwill <greenwoodw50@gmail.com>
Mon, 19 Aug 2024 15:40:33 +0000 (16:40 +0100)
committerwill <greenwoodw50@gmail.com>
Mon, 19 Aug 2024 15:40:33 +0000 (16:40 +0100)
clock.py

index 661d0f136991703a218f78a64121ee41b81336e7..be27e584f188a010bfb1090f38fdc9bff7a2c64c 100755 (executable)
--- a/clock.py
+++ b/clock.py
@@ -39,10 +39,11 @@ class clock():
 
                # dynamic variables
                self.cues = Array("I", [0])
-               self.current_position = Value("I", 0)
                self.last_position = Value("I", 0)
+               self.current_position = Value("I", 0)
+               self.target_position = Value("I", 0)
                self.movement_speed = Value("I", 10)
-               self.function = Value("u", "linear")
+               self.function = Array("u", "linear")
 
                get_loop = Process(target=self.get(), daemon = True)
                move_loop = Process(target=self.move(), daemon = True)