Skip to content
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

NodeMonitor is not collecting node information #64

Open
belovictor opened this issue Jul 6, 2024 · 0 comments
Open

NodeMonitor is not collecting node information #64

belovictor opened this issue Jul 6, 2024 · 0 comments

Comments

@belovictor
Copy link

Hi,

While trying to utilise NodeMonitor to keep track of devices on the bus I found that it does not collect information from NodeStatus updates and doesn't call update handler. While debugging this problem (as I'm sure there are nodes and communication is ok, and everything works great in dronecan gui tool) I found that in my case _on_node_status handler is never called and I tracked it down to adding handlers in NodeMonitor init

Strangely, if I change uavcan.protocol.NodeStatus to dronecan.uavcan.protocol.NodeStatus in line 92 of node_monitor.py

self._handle = node.add_handler(uavcan.protocol.NodeStatus, self._on_node_status) # @UndefinedVariable

NodeMonitor starts to receive NodeStatus messages and everything starts working. Is it a bug (which I can hardly believe) or maybe some known issue?

Best regards,
Victor Belov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant