-
Notifications
You must be signed in to change notification settings - Fork 2
KONDO ICSのサポート #3
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
base: master
Are you sure you want to change the base?
Conversation
s-takatsuki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大変遅くなりました。一先ずサンプルを動作させてみた結果、3点気になる所があったので確認お願いします。
| send_command.append(sc) | ||
| send_command.append(sc) | ||
|
|
||
| print("send_command:", send_command) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
出力を削除するか、logger.debugを使用したほうが良いかもしれません。
| raise InvalidResponseDataException("送信コマンドを正しくループバックできていません。") | ||
| recv_command = recv_byte_list[offset:] | ||
|
|
||
| print("recv_command:", recv_command) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
出力を削除するか、logger.debugを使用したほうが良いかもしれません。
| self.set_target_position(pos, sid=sid) | ||
| else: | ||
| # Free状態を送信 | ||
| self._send_recv(sid, self.CMD_POSITION, data=[0x00, 0x00]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data -> send_data?
KONDOのICSパケットサポートを追加しました。
KONDOのパケットは送信と受信がセットのため、sendのみではなくreceiveまで待って値等を取得するようにしています。
コンストラクタの引数ですが、以下を拡張で追加しています。
またTODOコメントを入れて処理を実装していない関数がいくつかあるのですが、これらはプロトコル上対応可能だけど私の時間が取れなかったため実装できていないものです。
動作チェックは角度の取得、指示に関してはできていますが他は確認していません。
塩漬けになりそうだったので、一旦プルリクエストさせてください。