Local safe autonomy #22

Merged
senaduka merged 15 commits from local_safe_autonomy into master 2016-06-08 11:23:44 +02:00
Showing only changes of commit a12a218e85 - Show all commits

View File

@@ -30,8 +30,10 @@ def sync():
current_state = changer.process_change()
server.post_state(current_state)
print " everything ok, canceling shutdown "
commands.getoutput('/sbin/shutdown -c')
except:
print " panicking safely ! "
safely_panic()
print " rebooting "
commands.getoutput('/sbin/shutdown -r now')
commands.getoutput('/sbin/shutdown -r +5')