Macros | Functions | Variables
lms2xx/lms2xx_config/src/main.cc File Reference
#include <stdlib.h>
#include <string>
#include <sstream>
#include <iostream>
#include <signal.h>
#include <sicktoolbox/SickLMS2xx.hh>
Include dependency graph for lms2xx/lms2xx_config/src/main.cc:

Go to the source code of this file.

Macros

#define INVALID_OPTION_STRING   " Invalid option!!! :o("
 
#define PROMPT_STRING   "lms2xx?> "
 

Functions

int getUserOption (bool &is_null_input)
 
int main (int argc, char *argv[])
 
void setAvailabilityLevel ()
 Prompts the user and sets the desired availability level via the driver interface. More...
 
void setMeasuringMode ()
 Prompts the user and sets the desired measuring mode via the driver interface. More...
 
void setMeasuringUnits ()
 Prompts the user and sets the desired measuring units via the driver interface. More...
 
void setSensitivityLevel ()
 Prompts the user and sets the desired sensitivity level via the driver interface. More...
 
void sigintHandler (int signal)
 
int strToInt (string input_str)
 
bool writeToEEPROM ()
 Confirms the user actually wants to perform write. More...
 

Variables

SickLMS2xxsick_lms_2xx = NULL
 

Macro Definition Documentation

#define INVALID_OPTION_STRING   " Invalid option!!! :o("

Definition at line 25 of file lms2xx/lms2xx_config/src/main.cc.

#define PROMPT_STRING   "lms2xx?> "

Definition at line 26 of file lms2xx/lms2xx_config/src/main.cc.

Function Documentation

int getUserOption ( bool &  is_null_input)

Reads in user input string and returns numeric representation

Definition at line 227 of file lms2xx/lms2xx_config/src/main.cc.

int main ( int  argc,
char *  argv[] 
)

Definition at line 90 of file lms2xx/lms2xx_config/src/main.cc.

void setAvailabilityLevel ( )

Prompts the user and sets the desired availability level via the driver interface.

Sets the measuring mode of the device

Definition at line 448 of file lms2xx/lms2xx_config/src/main.cc.

void setMeasuringMode ( )

Prompts the user and sets the desired measuring mode via the driver interface.

Sets the measuring mode of the device

Definition at line 332 of file lms2xx/lms2xx_config/src/main.cc.

void setMeasuringUnits ( )

Prompts the user and sets the desired measuring units via the driver interface.

Sets the measuring units of the device

Definition at line 272 of file lms2xx/lms2xx_config/src/main.cc.

void setSensitivityLevel ( )

Prompts the user and sets the desired sensitivity level via the driver interface.

Sets the Sick LMS sensitivity level

Definition at line 556 of file lms2xx/lms2xx_config/src/main.cc.

void sigintHandler ( int  signal)

Handle the SIGINT signal

Definition at line 187 of file lms2xx/lms2xx_config/src/main.cc.

int strToInt ( string  input_str)

Converts ascii string to an integer

Definition at line 216 of file lms2xx/lms2xx_config/src/main.cc.

bool writeToEEPROM ( )

Confirms the user actually wants to perform write.

Prompts the user to confirm requested operation

Definition at line 245 of file lms2xx/lms2xx_config/src/main.cc.

Variable Documentation

SickLMS2xx* sick_lms_2xx = NULL

Definition at line 88 of file lms2xx/lms2xx_config/src/main.cc.



sicktoolbox
Author(s): Jason Derenick , Thomas Miller
autogenerated on Tue Sep 10 2019 03:37:34