Skip to content

Commit

Permalink
mavpicviewer: minor flake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Oct 12, 2024
1 parent a81c11c commit b91233e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MAVProxy/tools/mavpicviewer/mavpicviewer_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,11 @@ def update_map(self):

# calculate image outline polygon for map
try:
projection1 = self.cam1_projection.get_projection(self.lat, self.lon, self.alt_amsl, self.roll, self.pitch, self.yaw)
projection1 = self.cam1_projection.get_projection(self.lat, self.lon, self.alt_amsl,
self.roll, self.pitch, self.yaw)
if projection1 is not None and self.sm is not None:
self.sm.add_object(mp_slipmap.SlipPolygon('projection1', projection1, layer=1, linewidth=2, colour=mpv.RGB_GREEN))
self.sm.add_object(mp_slipmap.SlipPolygon('projection1', projection1, layer=1,
linewidth=2, colour=mpv.RGB_GREEN))
else:
print(prefix_str + "failed to add projection to map")
except ArithmeticError as e:
Expand Down

0 comments on commit b91233e

Please sign in to comment.