From d0196b4a3109f7ec82466728b77dc977342e8ae9 Mon Sep 17 00:00:00 2001 From: Seth Date: Tue, 12 Nov 2024 00:44:59 +1300 Subject: [PATCH] added option to write csv for both forza and beamng --- OutGaugeInterpreter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OutGaugeInterpreter.py b/OutGaugeInterpreter.py index 0cdfeca..3778142 100644 --- a/OutGaugeInterpreter.py +++ b/OutGaugeInterpreter.py @@ -16,9 +16,9 @@ SERIAL_PORT = "" firstRun= True #used to do the headers for csv files class GameType(Enum): - NONE=0, - BEAMNG = 1, - FORZA = 2 + NONE=0 + BEAMNG = "BEAMNG" + FORZA = "FORZA" connectedArduino = False connectedWebSocket = False @@ -94,7 +94,7 @@ while connectedArduino == False: time.sleep(1) if csvOut == True: - csvFile = open(str(int(time.time())+'.csv',"a")) + csvFile = open(gameType.value+"_"+str(int(time.time()))+'.csv',"a")