Update competition_codes/state/sunprarie_state_main_FINAL.py

This commit is contained in:
2026-01-14 17:32:46 +00:00
parent bc9e78da95
commit ba9ddf6373

View File

@@ -24,9 +24,9 @@ drive_base.settings(600, 500, 300, 200)
drive_base.use_gyro(True)
"""
Debugging helps
Debugging helps :)
"""
DEBUG = 1 # Enable when you want to show logs
DEBUG = 0 # Enable when you want to show logs
# Example conversion function (adjust min/max values as needed for your hub)
async def get_battery_percentage(voltage_mV:float):
max_voltage = 8400.0 # max battery level https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltb87f4ba8db36994a/5f8801b918967612e58a69a6/techspecs_techniclargehubrechargeablebattery.pdf?locale=en-us