Firmware
Classes | Namespaces | Macros | Functions | Variables
cm8jl65.cpp File Reference
#include <px4_config.h>
#include <px4_getopt.h>
#include <px4_workqueue.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <poll.h>
#include <stdio.h>
#include <unistd.h>
#include <termios.h>
#include <perf/perf_counter.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_range_finder.h>
#include <drivers/device/device.h>
#include <drivers/device/ringbuffer.h>
#include <uORB/uORB.h>
#include <uORB/topics/distance_sensor.h>
#include "cm8jl65_parser.h"

Classes

class  CM8JL65
 

Namespaces

 cm8jl65
 Local functions in support of the shell command.
 

Macros

#define CM8JL65_TAKE_RANGE_REG   'd'
 
#define CM8JL65_DEFAULT_PORT   "/dev/ttyS2"
 
#define CM8JL65_CONVERSION_INTERVAL   50*1000UL/* 50ms */
 

Functions

__EXPORT int cm8jl65_main (int argc, char *argv[])
 
int cm8jl65::start (const char *port, uint8_t rotation)
 Start the driver.
 
int cm8jl65::stop ()
 Stop the driver.
 
int cm8jl65::test ()
 Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes.
 
int cm8jl65::reset ()
 Reset the driver.
 
int cm8jl65::info ()
 Print a little info about the driver.
 

Variables

CM8JL65cm8jl65::g_dev
 

Detailed Description

Author
Claudio Micheli claud.nosp@m.io@a.nosp@m.uteri.nosp@m.on.c.nosp@m.om

Driver for the Lanbao PSK-CM8JL65-CC5 distance sensor. Make sure to disable MAVLINK messages (MAV_0_CONFIG PARAMETER) on the serial port you connect the sensor,i.e TELEM1.

Author
Claudio Micheli claud.nosp@m.io@a.nosp@m.uteri.nosp@m.on.c.nosp@m.om

Parser declarations for Lanbao PSK-CM8JL65-CC5 distance sensor