|
|
@@ -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)
|