Playtime is over, first serious commit
This commit is contained in:
parent
e766a75265
commit
6c4d3c9d1f
10
data writing.py
Normal file
10
data writing.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
def sensor_raw_data():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def pid_data():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def servo_raw_data():
|
||||||
|
pass
|
||||||
39
functions.py
Normal file
39
functions.py
Normal 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
10
main.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import functions
|
||||||
|
from functions import initial
|
||||||
|
|
||||||
|
aaa = initial()
|
||||||
|
|
||||||
|
# todo Moet nog formule in
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -2,7 +2,6 @@
|
|||||||
# Once connected the easiest way to get your servo moving is to use the Gpiozero library in a Python script.
|
# 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 gpiozero import Servo
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
|
|||||||
6
plotter.py
Normal file
6
plotter.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
def read_data_file():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def plot_graphs():
|
||||||
|
pass
|
||||||
Loading…
x
Reference in New Issue
Block a user