autocommit

This commit is contained in:
ALIHAN DIKEL
2024-10-30 00:52:11 +03:00
parent 425975434e
commit 4063dc476b
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -11,3 +11,4 @@ env
pipwheels
.aider*
.env
tutorials

View File

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