fork download
  1. import math
  2.  
  3. goal = [0,1]
  4. robot = [0,0]
  5. thetanow = [0]
  6.  
  7. for i in range(2):
  8. goal[i] = goal[i]-robot[i]
  9.  
  10. robot = [0,0]
  11.  
  12. goalradian = math.atan2(goal[1],goal[0])
  13.  
  14. goaldegree = math.degrees(goalradian)
  15.  
  16. goaldegree -= thetanow[0]
  17.  
  18. print (goaldegree)
  19.  
  20. # your code goes here# your code goes here# your code goes here
Success #stdin #stdout 0.02s 9320KB
stdin
Standard input is empty
stdout
90.0