Playtime is over, first serious commit

This commit is contained in:
Rudi klein 2024-12-18 13:45:00 +01:00
parent e766a75265
commit 6c4d3c9d1f
5 changed files with 66 additions and 2 deletions

10
data writing.py Normal file
View File

@ -0,0 +1,10 @@
def sensor_raw_data():
pass
def pid_data():
pass
def servo_raw_data():
pass

39
functions.py Normal file
View File

@ -0,0 +1,39 @@
import gpiozero as gp
from time import sleep
def system_test():
...
# todo Test niet mogelijk. Verwijderen?
def initial():
...
def calibrate():
...
def read_distance_sensor():
...
def read_setpoint():
...
def calculate_position():
...
def process_pid():
...
def calculate_new_servo_pos():
...
def send_data_to_servo():
...

10
main.py Normal file
View File

@ -0,0 +1,10 @@
import functions
from functions import initial
aaa = initial()
# todo Moet nog formule in

View File

@ -2,7 +2,6 @@
# Once connected the easiest way to get your servo moving is to use the Gpiozero library in a Python script.
from gpiozero import Servo
from time import sleep

6
plotter.py Normal file
View File

@ -0,0 +1,6 @@
def read_data_file():
pass
def plot_graphs():
pass