panda-py icon indicating copy to clipboard operation
panda-py copied to clipboard

Adding programming vs demonstration mode

Open colormotor opened this issue 11 months ago • 0 comments

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

colormotor avatar Feb 29 '24 00:02 colormotor