panda-py
panda-py copied to clipboard
Adding programming vs demonstration mode
Hi, it would be useful to add functionality to the desk interface so it can also set programming vs execution mode. Currently I am doing this externally (using a FR3) with this function:
def set_programming_mode(desk, flag):
if flag:
url = '/desk/api/operating-mode/programming'
else:
url = '/desk/api/operating-mode/execution'
desk._request('post',
url,
files={'force': True},
headers={'X-Control-Token': desk._token.token})
With the URLs borrowed from https://github.com/TimSchneider42/franky