Guest User

Untitled

a guest
Sep 28th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. pan_low_limit = int(self.send_query("PN", 2))
  2. pan_high_limit = int(self.send_query("PX", 2))
  3. tilt_low_limit = int(self.send_query("TN", 2))
  4. tilt_high_limit = int(self.send_query("TX", 2))
  5.  
  6. limits = [(pan_low_limit, "PN"), (pan_high_limit, "PX"), (tilt_low_limit, "TN"), (tilt_high_limit, "TX")]
  7. for v, c in limits:
  8. v = int(self.send_query(c, 2))
  9. print("Result from {}: {}".format(c, v))
  10. print(limits)
  11. print("tilt_low_limit: {}".format(tilt_low_limit))
  12.  
  13. Result from PN: -27067
  14. Result from PX: 27067
  15. Result from TN: -27999
  16. Result from TX: 9333
  17. [(1, 'PN'), (1, 'PX'), (1, 'TN'), (1,'TX')]
  18. tilt_low_limit: 1
  19. PN: 1
Add Comment
Please, Sign In to add comment