działa jak natura chciała

tak (poprawka)
This commit is contained in:
filipgrabowiecki
2024-04-16 19:12:51 +02:00
committed by GitHub
parent 5fd80aa65d
commit 1ff8400e04

View File

@@ -7,6 +7,9 @@ import cv2
from pyzbar.pyzbar import decode from pyzbar.pyzbar import decode
import numpy as np import numpy as np
global czy_hubert_to_debil
czy_hubert_to_debil = True
class TelloDrone(): class TelloDrone():
drone = Tello() drone = Tello()
start = time.time() start = time.time()
@@ -59,7 +62,6 @@ class TelloDrone():
print(f"TEMPERATURE: {self.drone.get_temperature()}\n") print(f"TEMPERATURE: {self.drone.get_temperature()}\n")
def graphs(self): def graphs(self):
x = [] x = []
pitch = [] pitch = []
yaw = [] yaw = []
@@ -73,7 +75,6 @@ class TelloDrone():
is_alive = True is_alive = True
while not self.has_landed: while not self.has_landed:
x.append(cnt) x.append(cnt)
pitch.append(self.drone.get_pitch()) pitch.append(self.drone.get_pitch())
yaw.append(self.drone.get_yaw()) yaw.append(self.drone.get_yaw())