Skip to content

NodeMonitor is not collecting node information #64

@belovictor

Description

@belovictor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions