fixed speed value
This commit is contained in:
parent
83585910f9
commit
bd1e361446
1 changed files with 4 additions and 1 deletions
|
|
@ -122,12 +122,14 @@ def runningThread():
|
||||||
firstRun=False
|
firstRun=False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if (tkDataTypeOut.get() == outputValue.SPEED):
|
if (tkDataTypeOut.get() == outputValue.SPEED.value):
|
||||||
kmh = kmh*3.6
|
kmh = kmh*3.6
|
||||||
|
|
||||||
toPi.write(str(kmh).encode()+":".encode())
|
toPi.write(str(kmh).encode()+":".encode())
|
||||||
except:
|
except:
|
||||||
print("arduino disconnected please check connection\n")
|
print("arduino disconnected please check connection\n")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#code runs from here<-----------------------------------------------------------------------------------------------------------
|
#code runs from here<-----------------------------------------------------------------------------------------------------------
|
||||||
|
|
@ -157,6 +159,7 @@ def startStopButtonFunc():
|
||||||
appState = ProgramState.WAITNG
|
appState = ProgramState.WAITNG
|
||||||
statusTextVar.set("Waiting...")
|
statusTextVar.set("Waiting...")
|
||||||
stopThread = True
|
stopThread = True
|
||||||
|
|
||||||
|
|
||||||
##GUI init
|
##GUI init
|
||||||
rootFrameGui= tkinter.Tk()
|
rootFrameGui= tkinter.Tk()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue