Lucas 7 ay önce
ebeveyn
işleme
656ddb47e7
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 2 2
      GUI.py
  2. 1 1
      scores.txt

+ 2 - 2
GUI.py

@@ -114,7 +114,7 @@ def start_ble_thread():
 
 def update_dinger_position():
     global dinger
-    score = currentScore.get()
+    score = currentScore.get() * 0.01
     
     # Example logic: map score (0–100) to y-position (900 to 300)
     # You can adjust the ranges to suit your needs
@@ -140,7 +140,7 @@ def data_loop():
     while True:
         bledata = dobluetooth.getDataArr()
         if punch_on:
-            accel_mag: float = bledata[7]
+            accel_mag: float = bledata[6]
             app.after(0, lambda val=accel_mag: currentScore.set(currentScore.get() + val))
             app.after(0, update_dinger_position)
         time.sleep(0.1)

+ 1 - 1
scores.txt

@@ -1 +1 @@
-218.7000000000002 
+17821.79999999999