New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
outgoing commands #3
Comments
Hello, Apart from the setcmd command given in the examples here Isn't there any way to get a more specific result than getting each time the whole list of dictionaries ? If someone has found how to use this more specifically, I would gladly hear how. Thank you for your help Best |
@lweingart FYI, I started implementing my own library in this project. Here is a code snippet on how to use it: class Gimbal:
# ...
def send_message(self, message: Message):
logger.debug(f'send message: {message}')
self._connection.write(pack_message(message))
# ...
def get_angles(self) -> GetAnglesInCmd:
self.send_message(create_message(CMD_GET_ANGLES))
cmd = read_cmd(self._connection)
assert cmd.id == CMD_GET_ANGLES
return parse_cmd(cmd) |
Hey @maiermic, thank you very much for your link and for your work, I'll give it a try :-) Cheers |
There are no outgoing commands specified yet. How are they supposed to be specified?
All current commands have
cmdbodysize
of0
andcmdfmt
of''
. The propertycmdfmt
is never used. Further,setcmd
takescmddata
as a string or at least the default value is''
. What is the format of this string? Shouldn't that be a request object that should be specified similar torespfields
?The text was updated successfully, but these errors were encountered: