Skip to content

Commit

Permalink
mavproxy_fence.py: correct integer-in-mavlink-int problem
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jul 22, 2023
1 parent a5840e0 commit 4543740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MAVProxy/modules/mavproxy_fence.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ def cmd_movepolypoint(self, args):
if moving_item.get_type() == "MISSION_ITEM_INT":
moving_item.x *= 1e7
moving_item.y *= 1e7
moving_item.x = int(moving_item.x)
moving_item.y = int(moving_item.y)

self.wploader.set(moving_item, moving_item.seq)
self.wploader.last_change = time.time()
Expand Down

0 comments on commit 4543740

Please sign in to comment.