diff --git a/Servers/Web.py b/Servers/Web.py index 68871bb..b946d08 100644 --- a/Servers/Web.py +++ b/Servers/Web.py @@ -12,7 +12,6 @@ class ImageHandler(BaseHTTPRequestHandler): robot_data = None enabled = False - # rotation = 0 def do_GET(self): if self.path.endswith(".mjpg"): @@ -64,8 +63,6 @@ def do_GET(self): self.send_header("Cache-Control", "no-cache") self.end_headers() while self.enabled: - # self.rotation = (self.rotation+1)%360 - # self.wfile.write("data: {}\n\n".format(self.rotation).encode()) gyro_angle = self.robot_data.getNumber('Gyro', 0.0) self.wfile.write("data: {}\n\n".format(gyro_angle).encode()) sleep(0.6) diff --git a/Transform2D.py b/Transform2D.py index 405eee3..97c0691 100644 --- a/Transform2D.py +++ b/Transform2D.py @@ -85,7 +85,7 @@ def compute_max_angle(self): return min(CameraProperties.functional_limit - self.cameraTilt + self.fov_vert/2.0, self.fov_vert) -ELPFisheyeL = CameraProperties(39.0, 85.0, 140.0, 11.0) -ELPFisheyeR = CameraProperties(39.0, 85.0, 140.0, 11.0) +ELPFisheyeL = CameraProperties(39.0, 65.0, 140.0, 15.0) +ELPFisheyeR = CameraProperties(39.0, 65.0, 140.0, 15.0) ZED = CameraProperties(22.4, 54.0, 96.0, 90.0)#TODO get accurate first parameter, which is height