Skip to content

Commit

Permalink
autotest: correct places using print rather than progress
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jul 1, 2024
1 parent 4ed1b6b commit 98068e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Tools/autotest/rover.py
Original file line number Diff line number Diff line change
Expand Up @@ -3952,11 +3952,11 @@ def drive_somewhere_breach_boundary_and_rtl(self, loc, target_system=1, target_c
continue
t = m.get_type()
if t == "POSITION_TARGET_GLOBAL_INT":
print("Target: (%s)" % str(m))
self.progress("Target: (%s)" % str(m))
elif t == "GLOBAL_POSITION_INT":
print("Position: (%s)" % str(m))
self.progress("Position: (%s)" % str(m))
elif t == "FENCE_STATUS":
print("Fence: %s" % str(m))
self.progress("Fence: %s" % str(m))
if m.breach_status != 0:
seen_fence_breach = True
self.progress("Fence breach detected!")
Expand Down
4 changes: 2 additions & 2 deletions Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5016,7 +5016,7 @@ def wp_to_mission_item_int(self, wp):

def mission_from_filepath(self, filepath, target_system=1, target_component=1):
'''returns a list of mission-item-ints from filepath'''
print("filepath: %s" % filepath)
self.progress("filepath: %s" % filepath)
self.progress("Loading mission (%s)" % os.path.basename(filepath))
wploader = mavwp.MAVWPLoader(
target_system=target_system,
Expand Down Expand Up @@ -5809,7 +5809,7 @@ def arm_motors_with_rc_input(self, timeout=20):
self.set_output_to_trim(self.get_stick_arming_channel())
self.progress("Arm in %ss" % tdelta) # TODO check arming time
return
print("Not armed after %f seconds" % (tdelta))
self.progress("Not armed after %f seconds" % (tdelta))
if tdelta > timeout:
break
self.set_output_to_trim(self.get_stick_arming_channel())
Expand Down

0 comments on commit 98068e4

Please sign in to comment.