MCPcopy Create free account
hub / github.com/Livox-SDK/Livox-SDK / GetCommandTimeout

Function GetCommandTimeout

sdk_core/src/command_handler/command_handler.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48uint16_t GetCommandTimeout(uint8_t command_set, uint8_t command_id) {
49 switch (command_set) {
50 case kCommandSetGeneral:
51 assert(command_id < sizeof(GeneralCommandTimeout));
52 return GeneralCommandTimeout[command_id];
53 case kCommandSetLidar:
54 assert(command_id < sizeof(LidarCommandTimeout));
55 return LidarCommandTimeout[command_id];
56 case kCommandSetHub:
57 assert(command_id < sizeof(HubCommandTimeout));
58 return HubCommandTimeout[command_id];
59 }
60 return KDefaultTimeOut;
61}
62
63bool IsSubLidarException(const Command &command) {
64 if (device_manager().device_mode() == kDeviceModeLidar) {

Callers 1

SendCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected