PX4 Firmware
PX4 Autopilot Software http://px4.io
ll40ls.cpp File Reference
#include <cstdlib>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <systemlib/err.h>
#include <board_config.h>
#include <drivers/device/i2c.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/module.h>
#include "LidarLiteI2C.h"
#include "LidarLitePWM.h"
Include dependency graph for ll40ls.cpp:

Go to the source code of this file.

Namespaces

 ll40ls
 Local functions in support of the shell command.
 

Functions

int ll40ls::print_regs ()
 Prints register information to the console. More...
 
int ll40ls::start (const uint8_t rotation)
 Attempt to start driver on all available I2C busses. More...
 
int ll40ls::start_bus (const int bus, const uint8_t rotation)
 Start the driver on a specific bus. More...
 
int ll40ls::start_pwm (const uint8_t rotation)
 Start the pwm driver. More...
 
int ll40ls::status ()
 Prints status info about the driver. More...
 
int ll40ls::stop ()
 Stops the driver. More...
 
int ll40ls::usage ()
 Displays driver usage at the console. More...
 
__EXPORT int ll40ls_main (int argc, char *argv[])
 Driver 'main' command. More...
 

Variables

LidarLitell40ls::instance = nullptr
 

Detailed Description

Author
Allyson Kreft
Johan Jansen jnsn..nosp@m.joha.nosp@m.n@gma.nosp@m.il.c.nosp@m.om
Ban Siesta bansi.nosp@m.esta.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
James Goppert james.nosp@m..gop.nosp@m.pert@.nosp@m.gmai.nosp@m.l.com

Interface for the PulsedLight Lidar-Lite range finders.

Definition in file ll40ls.cpp.

Function Documentation

◆ ll40ls_main()

__EXPORT int ll40ls_main ( int  argc,
char *  argv[] 
)

Driver 'main' command.

Definition at line 266 of file ll40ls.cpp.

References ll40ls::print_regs(), ll40ls::start(), ll40ls::start_bus(), ll40ls::start_pwm(), ll40ls::status(), ll40ls::stop(), and ll40ls::usage().

Here is the call graph for this function: