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