|
livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
|
One notification. kind selects which fields are meaningful; the rest are default. More...
#include <livox/mid360/event.hpp>
Public Types | |
| enum class | Kind : std::uint8_t { kStateChanged , kHms , kDiagChanged , kDisconnected , kReconnected , kStats , kFirmwareLogGap } |
| What happened; selects the meaningful fields. More... | |
Public Attributes | |
| Kind | kind = Kind::kStats |
| which notification this is | |
| std::uint64_t | time_ns = 0 |
| host time of the observation | |
| DisconnectReason | reason = DisconnectReason::kNone |
| kDisconnected / kReconnected | |
| std::uint32_t | attempts = 0 |
| kReconnected: attempts including the successful one | |
| WorkState | old_state = WorkState::kIdle |
| kStateChanged | |
| WorkState | new_state = WorkState::kIdle |
| kStateChanged | |
| std::array< HmsCode, 8 > | hms {} |
| kHms: key 0x8011 slots, inactive ones raw == 0 | |
| HmsLevel | hms_level = HmsLevel::kNone |
| kHms: highest level among the active slots | |
| DiagStatus | diag_old |
| kDiagChanged (all normal before the first push) | |
| DiagStatus | diag_new |
| kDiagChanged | |
| DeviceStats | stats |
| kStats | |
| std::uint8_t | log_file_index = 0 |
| kFirmwareLogGap | |
| std::uint32_t | log_expected = 0 |
| kFirmwareLogGap: trans_index expected | |
| std::uint32_t | log_actual = 0 |
| kFirmwareLogGap: trans_index received | |
One notification. kind selects which fields are meaningful; the rest are default.
|
strong |
What happened; selects the meaningful fields.
| Enumerator | |
|---|---|
| kStateChanged | |
| kHms | |
| kDiagChanged | |
| kDisconnected | see reason (#8); commands fail with kDisconnected until kReconnected |
| kReconnected | session, host setup and sampling re-established after attempts |
| kStats | periodic stats snapshot (#6) |
| kFirmwareLogGap | log trans_index jumped inside one file (#44); see log_* |