Compare commits
1 Commits
bc9e78da95
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| ba9ddf6373 |
@@ -24,9 +24,9 @@ drive_base.settings(600, 500, 300, 200)
|
|||||||
drive_base.use_gyro(True)
|
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)
|
# Example conversion function (adjust min/max values as needed for your hub)
|
||||||
async def get_battery_percentage(voltage_mV:float):
|
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
|
max_voltage = 8400.0 # max battery level https://assets.education.lego.com/v3/assets/blt293eea581807678a/bltb87f4ba8db36994a/5f8801b918967612e58a69a6/techspecs_techniclargehubrechargeablebattery.pdf?locale=en-us
|
||||||
Reference in New Issue
Block a user