43 #define RPLIDAR_CMD_STOP 0x25 44 #define RPLIDAR_CMD_SCAN 0x20 45 #define RPLIDAR_CMD_FORCE_SCAN 0x21 46 #define RPLIDAR_CMD_RESET 0x40 50 #define RPLIDAR_CMD_GET_DEVICE_INFO 0x50 51 #define RPLIDAR_CMD_GET_DEVICE_HEALTH 0x52 53 #define RPLIDAR_CMD_GET_SAMPLERATE 0x59 //added in fw 1.17 56 #define RPLIDAR_CMD_EXPRESS_SCAN 0x82 //added in fw 1.17 59 #define RPLIDAR_CMD_SET_MOTOR_PWM 0xF0 60 #define RPLIDAR_CMD_GET_ACC_BOARD_FLAG 0xFF 69 #define RPLIDAR_EXPRESS_SCAN_MODE_NORMAL 0 70 #define RPLIDAR_EXPRESS_SCAN_MODE_FIXANGLE 1 76 #define MAX_MOTOR_PWM 1023 77 #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 127 #define RPLIDAR_RESP_MEASUREMENT_EXP_ANGLE_MASK (0x3) 128 #define RPLIDAR_RESP_MEASUREMENT_EXP_DISTANCE_MASK (0xFC) 137 #define RPLIDAR_RESP_MEASUREMENT_EXP_SYNC_1 0xA 138 #define RPLIDAR_RESP_MEASUREMENT_EXP_SYNC_2 0x5 140 #define RPLIDAR_RESP_MEASUREMENT_EXP_SYNCBIT (0x1<<15) 146 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