Skip to content

Commit bb2aa29

Browse files
committed
Linter
1 parent 230b895 commit bb2aa29

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • exercises/drone_cat_mouse/python_template/processB

exercises/drone_cat_mouse/python_template/processB/academy.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
ESCAPE_SPEED = 1.5
1111
# square around the mouse's spawn (x=20, y=5), 10m a side
1212
WAYPOINTS = [
13-
(25.0, 5.0, TAKEOFF_HEIGHT),
13+
(25.0, 5.0, TAKEOFF_HEIGHT),
1414
(25.0, 10.0, TAKEOFF_HEIGHT),
1515
(20.0, 10.0, TAKEOFF_HEIGHT),
1616
(15.0, 10.0, TAKEOFF_HEIGHT),
17-
(15.0, 5.0, TAKEOFF_HEIGHT),
18-
(15.0, 0.0, TAKEOFF_HEIGHT),
19-
(20.0, 0.0, TAKEOFF_HEIGHT),
20-
(25.0, 0.0, TAKEOFF_HEIGHT),
17+
(15.0, 5.0, TAKEOFF_HEIGHT),
18+
(15.0, 0.0, TAKEOFF_HEIGHT),
19+
(20.0, 0.0, TAKEOFF_HEIGHT),
20+
(25.0, 0.0, TAKEOFF_HEIGHT),
2121
]
22-
REACH_THRESHOLD = 1.2 # how close counts as "reached this corner"
22+
REACH_THRESHOLD = 1.2 # how close counts as "reached this corner"
2323

2424

2525
def distance(pos, target):
2626
return math.sqrt(
27-
(pos[0] - target[0]) ** 2 +
28-
(pos[1] - target[1]) ** 2 +
29-
(pos[2] - target[2]) ** 2
27+
(pos[0] - target[0]) ** 2
28+
+ (pos[1] - target[1]) ** 2
29+
+ (pos[2] - target[2]) ** 2
3030
)
3131

3232

0 commit comments

Comments
 (0)