2024-12-29 14:30:37 +01:00
|
|
|
from datetime import datetime
|
2024-12-29 21:58:19 +01:00
|
|
|
import control_functions as cf
|
2024-12-25 16:52:07 +01:00
|
|
|
|
2025-01-05 22:02:02 +01:00
|
|
|
with open("pid-balancer_" + "time_file.txt", "w") as time_file:
|
|
|
|
|
time_file.write(datetime.strftime(datetime.now(), '%Y%m%d%H%M%S.%f')[:-3])
|
2024-12-18 13:45:00 +01:00
|
|
|
|
2025-01-04 17:50:27 +01:00
|
|
|
while True:
|
2024-12-18 13:45:00 +01:00
|
|
|
|
2025-01-05 22:02:02 +01:00
|
|
|
cf.calculate_acceleration()
|
2024-12-18 13:45:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|