|
livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
|
Disconnect detection and automatic recovery (issue #8). More...
#include <livox/mid360/device.hpp>
Public Attributes | |
| bool | enabled = true |
| false: only detect; recover with Device::reconnect() | |
| std::chrono::milliseconds | push_timeout {3000} |
| No accepted 0x0102 push for this long → kDisconnected. | |
| std::chrono::milliseconds | initial_backoff {500} |
| delay after the first failed attempt | |
| std::chrono::milliseconds | max_backoff {8000} |
| doubling stops here | |
| std::chrono::milliseconds | discovery_timeout {1000} |
| Timeout of the discovery fallback per attempt (the direct attempt uses session.request). | |
| std::vector< Endpoint > | discovery_targets |
| Unicast discovery targets for the fallback; empty = broadcast (see DiscoveryOptions). | |
| std::uint16_t | discovery_port = kDiscoveryPort |
| Port of the extra unicast target {ip configured by set_lidar_ip_config(), port} that the fallback adds after a network-config change (#50). | |
Disconnect detection and automatic recovery (issue #8).
| std::chrono::milliseconds livox::mid360::ReconnectOptions::push_timeout {3000} |
No accepted 0x0102 push for this long → kDisconnected.
The LiDAR pushes about once per second. A command timeout counts as a disconnect only when the last push is older than a third of this value (one nominal push period).
| std::uint16_t livox::mid360::ReconnectOptions::discovery_port = kDiscoveryPort |
Port of the extra unicast target {ip configured by set_lidar_ip_config(), port} that the fallback adds after a network-config change (#50).
Tests point it at the simulator.