autocommit
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,3 +11,4 @@ env
|
||||
pipwheels
|
||||
.aider*
|
||||
.env
|
||||
tutorials
|
||||
@@ -66,7 +66,7 @@ async def collect_flight_stats(state):
|
||||
bat = await asyncio.to_thread(tello.get_battery)
|
||||
temp = await asyncio.to_thread(tello.get_temperature)
|
||||
baro = await asyncio.to_thread(tello.get_barometer)
|
||||
calib_baro = await get_calibrated_altitude(offset=20, measure=baro)
|
||||
calib_baro = await get_calibrated_altitude(offset=39, measure=baro) # 39 -> tuncel çalışma masa üstü
|
||||
# wsnr = await tello.query_wifi_signal_noise_ratio()
|
||||
state["stats"] = {"bat": bat, "temp": temp, "baro": calib_baro}
|
||||
logger.debug(f"Battery: {bat} - Temperature: {temp} - Barometer: {calib_baro}")
|
||||
|
||||
Reference in New Issue
Block a user