Skip to content

Commit

Permalink
fence/rally/mission_item_protocol: remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Jul 29, 2023
1 parent 085884a commit f4b3b62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions MAVProxy/modules/lib/mission_item_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def process_waypoint_request(self, m, master):
'''process a waypoint request from the master'''
if m.mission_type != self.mav_mission_type():
return
print("Processing %s request: (%s)" % (self.itemtype(), str(m)))
# print("Processing %s request: (%s)" % (self.itemtype(), str(m)))
if (m.target_system != self.settings.source_system or
m.target_component != self.settings.source_component):
# self.console.error("Mission request is not for me")
Expand Down Expand Up @@ -678,7 +678,6 @@ def cmd_changealt(self, args):
wp.z = newalt
wp.target_system = self.target_system
wp.target_component = self.target_component
print("new wp: (%s)" % str(wp))
self.wploader.set(wp, offset)

self.wploader.last_change = time.time()
Expand Down Expand Up @@ -778,7 +777,6 @@ def cmd_param(self, args):
wp.target_component = self.target_component
self.wploader.set(wp, idx)
self.wploader.last_change = time.time()
print("Set param %u for %u to %f" % (pnum, idx, param[pnum-1]))
self.send_single_waypoint(idx)

def cmd_clear(self, args):
Expand All @@ -796,7 +794,6 @@ def cmd_list(self, args):
self.request_list_send()

def cmd_load(self, args):
print("args: %s" % str(args))
if len(args) != 1:
print("usage: %s load FILENAME" % self.command_name())
return
Expand Down Expand Up @@ -912,8 +909,6 @@ def savecsv(self, filename):
'''save waypoints to a file in human-readable CSV file'''
f = open(filename, mode='w')
headers = ["Seq", "Frame", "Cmd", "P1", "P2", "P3", "P4", "X", "Y", "Z"]
print(self.csv_line(headers))
f.write(self.csv_line(headers) + "\n")
for w in self.wploader.wpoints:
if getattr(w, 'comment', None):
# f.write("# %s\n" % w.comment)
Expand All @@ -930,7 +925,6 @@ def savecsv(self, filename):
self.pretty_parameter_value(w.y),
self.pretty_parameter_value(w.z),
]
print(self.csv_line(out_list))
f.write(self.csv_line(out_list) + "\n")
f.close()

Expand All @@ -952,7 +946,6 @@ def wp_ftp_download(self, args):
if ftp is None:
print("Need ftp module")
return
print("Fetching mission with ftp")
self.ftp_count = None
ftp.cmd_get([self.mission_ftp_name()], callback=self.ftp_callback, callback_progress=self.ftp_callback_progress)

Expand Down
1 change: 0 additions & 1 deletion MAVProxy/modules/mavproxy_fence.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def fence_draw_callback(self, points):
self.append(items)
self.send_all_items()
self.wploader.last_change = time.time()
print("Reset last changed time to %f" % self.wploader.last_change)

def cmd_draw(self, args):
'''convenience / compatability / slow learner command to work like the
Expand Down

0 comments on commit f4b3b62

Please sign in to comment.