Skip to content

Commit 06f548e

Browse files
committed
Bug fix angles not defined in go_centre routine
1 parent 30cd12e commit 06f548e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

routines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def run(agent):
187187
if relative_target.magnitude() > 350:
188188
defaultPD(agent, local_target)
189189
defaultThrottle(agent, 2300)
190+
angles = defaultPD(agent, agent.me.local(relative_target))
190191
if abs(angles[1]) > 1:
191192
agent.controller.handbrake = True
192193
agent.controller.boost = False

0 commit comments

Comments
 (0)