PX4 Firmware
PX4 Autopilot Software http://px4.io
CM8JL65.hpp File Reference
#include <termios.h>
#include <drivers/drv_hrt.h>
#include <drivers/rangefinder/PX4Rangefinder.hpp>
#include <perf/perf_counter.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
Include dependency graph for CM8JL65.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CM8JL65
 

Variables

static constexpr uint32_t CM8JL65_MEASURE_INTERVAL {50_ms}
 
static constexpr unsigned char START_FRAME_DIGIT1 {0xA5}
 
static constexpr unsigned char START_FRAME_DIGIT2 {0x5A}
 
static constexpr uint8_t DISTANCE_MSB_POS {2}
 Frame format definition 1B 1B 1B 1B 2B | 0xA5 | 0x5A | distance-MSB | distance-LSB | crc-16 |. More...
 
static constexpr uint8_t DISTANCE_LSB_POS {3}
 
static constexpr uint8_t PARSER_BUF_LENGTH {4}
 

Variable Documentation

◆ CM8JL65_MEASURE_INTERVAL

constexpr uint32_t CM8JL65_MEASURE_INTERVAL {50_ms}
static

Definition at line 58 of file CM8JL65.hpp.

Referenced by CM8JL65::start().

◆ DISTANCE_LSB_POS

constexpr uint8_t DISTANCE_LSB_POS {3}
static

Definition at line 72 of file CM8JL65.hpp.

Referenced by CM8JL65::data_parser().

◆ DISTANCE_MSB_POS

constexpr uint8_t DISTANCE_MSB_POS {2}
static

Frame format definition 1B 1B 1B 1B 2B | 0xA5 | 0x5A | distance-MSB | distance-LSB | crc-16 |.

Frame data saved for CRC calculation

Definition at line 71 of file CM8JL65.hpp.

Referenced by CM8JL65::data_parser().

◆ PARSER_BUF_LENGTH

constexpr uint8_t PARSER_BUF_LENGTH {4}
static

Definition at line 73 of file CM8JL65.hpp.

◆ START_FRAME_DIGIT1

constexpr unsigned char START_FRAME_DIGIT1 {0xA5}
static

Definition at line 61 of file CM8JL65.hpp.

Referenced by CM8JL65::collect(), and CM8JL65::data_parser().

◆ START_FRAME_DIGIT2

constexpr unsigned char START_FRAME_DIGIT2 {0x5A}
static

Definition at line 62 of file CM8JL65.hpp.

Referenced by CM8JL65::data_parser().