[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/pprzlink] 05d55e: improve IvyMessagesInte
From: |
GitHub |
Subject: |
[paparazzi-commits] [paparazzi/pprzlink] 05d55e: improve IvyMessagesInterface |
Date: |
Sat, 27 Feb 2016 14:54:51 -0800 |
Branch: refs/heads/py_ivy_msgs_interface
Home: https://github.com/paparazzi/pprzlink
Commit: 05d55e7f10ad0fb4faa086a08d31d0cc4592683d
https://github.com/paparazzi/pprzlink/commit/05d55e7f10ad0fb4faa086a08d31d0cc4592683d
Author: Felix Ruess <address@hidden>
Date: 2016-02-27 (Sat, 27 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()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [paparazzi/pprzlink] 05d55e: improve IvyMessagesInterface,
GitHub <=