Skip to content

Commit

Permalink
Switch from fenceloader to wploader object
Browse files Browse the repository at this point in the history
* The fenceloader object isn't part of the new fence class

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
  • Loading branch information
Ryanf55 committed Nov 12, 2024
1 parent 320b95a commit e7cb481
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def send_defines(self, target = None):
def send_fence(self):
'''load and draw the fence in cesium'''
self.fence = {}
self.fence_points_to_send = self.mpstate.public_modules['fence'].fenceloader.points
self.fence_points_to_send = self.mpstate.public_modules['fence'].wploader.points
for point in self.fence_points_to_send:
point_dict = point.to_dict()
idx = point_dict['idx']
Expand Down Expand Up @@ -190,8 +190,8 @@ def mavlink_packet(self, m):
self.rally_change_time = time.time()

# if the fence has changed, redisplay
if self.fence_change_time != self.module('fence').fenceloader.last_change:
self.fence_change_time = self.module('fence').fenceloader.last_change
if self.fence_change_time != self.module('fence').wploader.last_change:
self.fence_change_time = self.module('fence').wploader.last_change
self.send_fence()

def idle_task(self):
Expand Down

0 comments on commit e7cb481

Please sign in to comment.