42 #define RPLIDAR_CMD_STOP 0x25 43 #define RPLIDAR_CMD_SCAN 0x20 44 #define RPLIDAR_CMD_FORCE_SCAN 0x21 45 #define RPLIDAR_CMD_RESET 0x40 48 #define RPLIDAR_CMD_GET_DEVICE_INFO 0x50 49 #define RPLIDAR_CMD_GET_DEVICE_HEALTH 0x52 51 #define RPLIDAR_CMD_GET_SAMPLERATE 0x59 // added in fw 1.17 54 #define RPLIDAR_CMD_EXPRESS_SCAN 0x82 // added in fw 1.17 57 #define RPLIDAR_CMD_SET_MOTOR_PWM 0xF0 58 #define RPLIDAR_CMD_GET_ACC_BOARD_FLAG 0xFF 66 #define RPLIDAR_EXPRESS_SCAN_MODE_NORMAL 0 67 #define RPLIDAR_EXPRESS_SCAN_MODE_FIXANGLE 1 74 #define MAX_MOTOR_PWM 1023 75 #define DEFAULT_MOTOR_PWM 660 88 #define RPLIDAR_ANS_TYPE_DEVINFO 0x4 89 #define RPLIDAR_ANS_TYPE_DEVHEALTH 0x6 91 #define RPLIDAR_ANS_TYPE_MEASUREMENT 0x81 93 #define RPLIDAR_ANS_TYPE_MEASUREMENT_CAPSULED 0x82 96 #define RPLIDAR_ANS_TYPE_SAMPLE_RATE 0x15 98 #define RPLIDAR_ANS_TYPE_ACC_BOARD_FLAG 0xFF 100 #define RPLIDAR_RESP_ACC_BOARD_FLAG_MOTOR_CTRL_SUPPORT_MASK (0x1) 106 #define RPLIDAR_STATUS_OK 0x0 107 #define RPLIDAR_STATUS_WARNING 0x1 108 #define RPLIDAR_STATUS_ERROR 0x2 110 #define RPLIDAR_RESP_MEASUREMENT_SYNCBIT (0x1 << 0) 111 #define RPLIDAR_RESP_MEASUREMENT_QUALITY_SHIFT 2 112 #define RPLIDAR_RESP_MEASUREMENT_CHECKBIT (0x1 << 0) 113 #define RPLIDAR_RESP_MEASUREMENT_ANGLE_SHIFT 1 129 #define RPLIDAR_RESP_MEASUREMENT_EXP_ANGLE_MASK (0x3) 130 #define RPLIDAR_RESP_MEASUREMENT_EXP_DISTANCE_MASK (0xFC) 139 #define RPLIDAR_RESP_MEASUREMENT_EXP_SYNC_1 0xA 140 #define RPLIDAR_RESP_MEASUREMENT_EXP_SYNC_2 0x5 142 #define RPLIDAR_RESP_MEASUREMENT_EXP_SYNCBIT (0x1 << 15) 149 rplidar_response_cabin_nodes_t
cabins[16];
GLuint GLenum GLsizei GLsizei GLint GLint GLboolean packed
struct _rplidar_payload_express_scan_t __attribute__((packed)) rplidar_payload_express_scan_t
_u16 std_sample_duration_us
rplidar_response_cabin_nodes_t cabins[16]
_u16 express_sample_duration_us