Compare commits
10 Commits
bc9e78da95
...
state1
| Author | SHA1 | Date | |
|---|---|---|---|
| dc3057ee97 | |||
| ba9ddf6373 | |||
| 36fb4d94a3 | |||
| 68d8b346c7 | |||
| cfe7b96be5 | |||
| 09490f4e3e | |||
| c2e8ad028a | |||
| 7d168ff378 | |||
| 913e12f122 | |||
| d1eb92cf25 |
@@ -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