Skip to content

Commit

Permalink
Changed birds eye transform constants based on inkscape tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Mar 14, 2018
1 parent 5d6f9fd commit 72f92c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Servers/Web.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class ImageHandler(BaseHTTPRequestHandler):
robot_data = None

enabled = False
# rotation = 0

def do_GET(self):
if self.path.endswith(".mjpg"):
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Transform2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 72f92c6

Please sign in to comment.