added option to write csv for both forza and beamng
This commit is contained in:
parent
eb76c18efc
commit
d0196b4a31
1 changed files with 4 additions and 4 deletions
|
|
@ -16,9 +16,9 @@ SERIAL_PORT = ""
|
||||||
firstRun= True #used to do the headers for csv files
|
firstRun= True #used to do the headers for csv files
|
||||||
|
|
||||||
class GameType(Enum):
|
class GameType(Enum):
|
||||||
NONE=0,
|
NONE=0
|
||||||
BEAMNG = 1,
|
BEAMNG = "BEAMNG"
|
||||||
FORZA = 2
|
FORZA = "FORZA"
|
||||||
|
|
||||||
connectedArduino = False
|
connectedArduino = False
|
||||||
connectedWebSocket = False
|
connectedWebSocket = False
|
||||||
|
|
@ -94,7 +94,7 @@ while connectedArduino == False:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
if csvOut == True:
|
if csvOut == True:
|
||||||
csvFile = open(str(int(time.time())+'.csv',"a"))
|
csvFile = open(gameType.value+"_"+str(int(time.time()))+'.csv',"a")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue