mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-23 02:26:11 +01:00
Added 3D Renderer, First UI and First Settings
This commit is contained in:
29
2D.py
29
2D.py
@@ -1,18 +1,11 @@
|
||||
from ast import While
|
||||
import csv
|
||||
from math import fabs
|
||||
from msilib import make_id
|
||||
from posixpath import split
|
||||
from tkinter.filedialog import askopenfilename
|
||||
from turtle import width
|
||||
import pygame
|
||||
import time
|
||||
|
||||
Pixelsize = 10
|
||||
Size = 500
|
||||
|
||||
|
||||
|
||||
Height = Size/2
|
||||
Width = Size
|
||||
HeightMiddle = Height/2
|
||||
@@ -34,15 +27,18 @@ ele = []
|
||||
thr = []
|
||||
ail = []
|
||||
|
||||
with open(log, newline='') as csvfile:
|
||||
reader = csv.DictReader(csvfile)
|
||||
for row in reader:
|
||||
ltime.append(row['Time'])
|
||||
rud.append(row['Rud'])
|
||||
ele.append(row['Ele'])
|
||||
thr.append(row['Thr'])
|
||||
ail.append(row['Ail'])
|
||||
|
||||
try:
|
||||
with open(log, newline='') as csvfile:
|
||||
reader = csv.DictReader(csvfile)
|
||||
for row in reader:
|
||||
ltime.append(row['Time'])
|
||||
rud.append(row['Rud'])
|
||||
ele.append(row['Ele'])
|
||||
thr.append(row['Thr'])
|
||||
ail.append(row['Ail'])
|
||||
except:
|
||||
print("Can't read Log File!")
|
||||
exit()
|
||||
|
||||
i = 0
|
||||
while i != len(rud):
|
||||
@@ -72,7 +68,6 @@ while i != len(rud):
|
||||
ail[i] = (1024 - abs(iAil))*(joystickScaleWidth/2)
|
||||
|
||||
i+=1
|
||||
|
||||
|
||||
splitTime = []
|
||||
for e in ltime:
|
||||
|
||||
Reference in New Issue
Block a user