Formula Student Electronics & Software
The code for the embedded software
|
Functions | |
display (str, center=centerpos, fontsize=40) | |
percent_deviation (t1, t2) | |
process_and_save (data, filename, saved_points, n_saved) | |
Variables | |
screen = pygame.display.set_mode((640, 480)) | |
tuple | centerpos = (screen.get_rect().centerx, screen.get_rect().centery) |
int | step = 0 |
bool | done = False |
list | lines_y = [y for y in range(125, screen.get_height() - 25, 25)] |
list | saved_points = [] |
int | n_saved = 0 |
tuple | data = (int(line.split("\t")[0]), int(line.split("\t")[1])) |
calibration.display | ( | str, | |
center = centerpos , |
|||
fontsize = 40 |
|||
) |
calibration.percent_deviation | ( | t1, | |
t2 | |||
) |
calibration.process_and_save | ( | data, | |
filename, | |||
saved_points, | |||
n_saved | |||
) |
tuple calibration.centerpos = (screen.get_rect().centerx, screen.get_rect().centery) |
Definition at line 9 of file calibration.py.
tuple calibration.data = (int(line.split("\t")[0]), int(line.split("\t")[1])) |
Definition at line 82 of file calibration.py.
bool calibration.done = False |
Definition at line 24 of file calibration.py.
list calibration.lines_y = [y for y in range(125, screen.get_height() - 25, 25)] |
Definition at line 25 of file calibration.py.
calibration.n_saved = 0 |
Definition at line 77 of file calibration.py.
calibration.saved_points = [] |
Definition at line 76 of file calibration.py.
calibration.screen = pygame.display.set_mode((640, 480)) |
Definition at line 6 of file calibration.py.
int calibration.step = 0 |
Definition at line 23 of file calibration.py.