[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/pprzlink] e2b2d9: improve IvyMessagesInte
From: |
GitHub |
Subject: |
[paparazzi-commits] [paparazzi/pprzlink] e2b2d9: improve IvyMessagesInterface |
Date: |
Sun, 28 Feb 2016 13:20:09 -0800 |
Branch: refs/heads/master
Home: https://github.com/paparazzi/pprzlink
Commit: e2b2d9871366e953480ccce0b7a913bcc35b5a06
https://github.com/paparazzi/pprzlink/commit/e2b2d9871366e953480ccce0b7a913bcc35b5a06
Author: Felix Ruess <address@hidden>
Date: 2016-02-28 (Sun, 28 Feb 2016)
Changed paths:
M lib/v1.0/python/ivy_msg_interface.py
Log Message:
-----------
improve IvyMessagesInterface
don't pass callback in constructor, instead add possibility to bind/subscribe
multiple times:
bind_raw: add a plain Ivy binding for the given regex
subscribe: bind to Ivy messages matching regex and parse them as PprzMessage
(callback with ac_id and PprzMessage)
that basically means replacing something like
self.interface = IvyMessagesInterface(self.message_recv)
with
self.interface = IvyMessagesInterface("agent_name")
self.interface.subscribe(self.message_recv)
Also:
- always initialize Ivy, but with start_ivy=False don't start the server yet,
do that later with start()
- send returns number of clients the message was sent to
Commit: 2b246f6480ac06bb6fc58b2a7947a59cec360a04
https://github.com/paparazzi/pprzlink/commit/2b246f6480ac06bb6fc58b2a7947a59cec360a04
Author: Felix Ruess <address@hidden>
Date: 2016-02-28 (Sun, 28 Feb 2016)
Changed paths:
M lib/v1.0/python/ivy_msg_interface.py
Log Message:
-----------
IvyMessagesInterface: handle advanced format
used in request (msg_name_REQ) and answer format for some ground messages
Compare:
https://github.com/paparazzi/pprzlink/compare/79e5cfe5b3be...2b246f6480ac