Skip to content

Commit 09fe6d6

Browse files
committed
Comments out print lines from test_goto (still useful)
1 parent 0fd44a8 commit 09fe6d6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tests/sitl/test_goto.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ def arm_and_takeoff(aTargetAltitude):
2121
Arms vehicle and fly to aTargetAltitude.
2222
"""
2323

24-
print "Basic pre-arm checks"
24+
# print "Basic pre-arm checks"
2525
# Don't let the user try to fly autopilot is booting
2626
if vehicle.mode.name == "INITIALISING":
27-
print "Waiting for vehicle to initialise"
27+
# print "Waiting for vehicle to initialise"
2828
time.sleep(1)
2929
while vehicle.gps_0.fix_type < 2:
30-
print "Waiting for GPS...:", vehicle.gps_0.fix_type
30+
# print "Waiting for GPS...:", vehicle.gps_0.fix_type
3131
time.sleep(1)
3232

33-
print "Arming motors"
33+
# print "Arming motors"
3434
# Copter should arm in GUIDED mode
3535
vehicle.mode = VehicleMode("GUIDED")
3636
vehicle.flush()
3737

3838
i = 60
3939
while not api.exit and vehicle.mode.name != 'GUIDED' and i > 0:
40-
print " Waiting for guided %s seconds..." % (i,)
40+
# print " Waiting for guided %s seconds..." % (i,)
4141
time.sleep(1)
4242
i = i - 1
4343

@@ -46,49 +46,49 @@ def arm_and_takeoff(aTargetAltitude):
4646

4747
i = 60
4848
while not api.exit and not vehicle.armed and vehicle.mode.name == 'GUIDED' and i > 0:
49-
print " Waiting for arming %s seconds..." % (i,)
49+
# print " Waiting for arming %s seconds..." % (i,)
5050
time.sleep(1)
5151
i = i - 1
5252

5353
# Failure will result in arming but immediately landing
5454
assert vehicle.armed
5555
assert_equals(vehicle.mode.name, 'GUIDED')
5656

57-
print "Taking off!"
57+
# print "Taking off!"
5858
vehicle.commands.takeoff(aTargetAltitude) # Take off to target altitude
5959
vehicle.flush()
6060

6161
# Wait until the vehicle reaches a safe height before
6262
# processing the goto (otherwise the command after
6363
# Vehicle.commands.takeoff will execute immediately).
6464
while not api.exit:
65-
print " Altitude: ", vehicle.location.alt
65+
# print " Altitude: ", vehicle.location.alt
6666
# Test for altitude just below target, in case of undershoot.
6767
if vehicle.location.alt >= aTargetAltitude * 0.95:
68-
print "Reached target altitude"
69-
break;
68+
# print "Reached target altitude"
69+
break
7070

7171
assert_equals(vehicle.mode.name, 'GUIDED')
7272
time.sleep(1)
7373

7474
arm_and_takeoff(10)
7575

76-
print "Going to first point..."
76+
# print "Going to first point..."
7777
point1 = Location(-35.361354, 149.165218, 20, is_relative=True)
7878
vehicle.commands.goto(point1)
7979
vehicle.flush()
8080

8181
# sleep so we can see the change in map
8282
time.sleep(3)
8383

84-
print "Going to second point..."
84+
# print "Going to second point..."
8585
point2 = Location(-35.363244, 149.168801, 20, is_relative=True)
8686
vehicle.commands.goto(point2)
8787
vehicle.flush()
8888

8989
# sleep so we can see the change in map
9090
time.sleep(3)
9191

92-
print "Returning to Launch"
92+
# print "Returning to Launch"
9393
vehicle.mode = VehicleMode("RTL")
9494
vehicle.flush()

0 commit comments

Comments
 (0)