Defines | Functions | Variables
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.

Defines

#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.
void setMeasuringMode ()
 Prompts the user and sets the desired measuring mode via the driver interface.
void setMeasuringUnits ()
 Prompts the user and sets the desired measuring units via the driver interface.
void setSensitivityLevel ()
 Prompts the user and sets the desired sensitivity level via the driver interface.
void sigintHandler (int signal)
int strToInt (string input_str)
bool writeToEEPROM ()
 Confirms the user actually wants to perform write.

Variables

SickLMS2xxsick_lms_2xx = NULL

Define 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

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

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

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.

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.

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

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

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



sicktoolbox
Author(s): Jason Derenick , Thomas Miller
autogenerated on Thu Aug 27 2015 15:17:16