Skip to content

Instantly share code, notes, and snippets.

@Mec-iS
Created July 3, 2017 18:28
Show Gist options
  • Save Mec-iS/0e39bfd83aff63b3b541579d8226897f to your computer and use it in GitHub Desktop.
Save Mec-iS/0e39bfd83aff63b3b541579d8226897f to your computer and use it in GitHub Desktop.
# pseudo-code
last_status = time()
while True:
current = time()
if current - last_status == 15 secs:
update_drone_status()
last_status = current
sleep(14.5 secs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment