Skip to content

Commit

Permalink
mavpicviewer: hardcode fov and res for Siyi ZT6
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Oct 14, 2024
1 parent b91233e commit 5d39c13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MAVProxy/tools/mavpicviewer/mavpicviewer_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(self, folderpath, comm_pipe=None):
self.update_image()

# set camera parameters with default FOV
self.update_camera_settings(36.9)
self.update_camera_settings(25)

# hard-code mount angles
self.roll = 0
Expand Down Expand Up @@ -402,8 +402,8 @@ def update_camera_settings(self, FOV):
if self.im is None:
print(prefix_str + "failed to update camera settings because image is not set")
return
# set camera parameters
self.cam1_params = camera_projection.CameraParams(xresolution=self.im.width, yresolution=self.im.height, FOV=FOV)
# set camera parameters (hard-coded for Siyi ZT6)
self.cam1_params = camera_projection.CameraParams(xresolution=640, yresolution=512, FOV=FOV)
self.cam1_projection = camera_projection.CameraProjection(self.cam1_params, self.elevation_model, self.terrain_source)

# update the displayed map with polygon
Expand Down

0 comments on commit 5d39c13

Please sign in to comment.