![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Macros | |
#define | APP_EC_OK 0 |
success exit code | |
#define | APP_EC_ARGS 2 |
command-line options/arguments error exit code | |
#define | APP_EC_EXEC 4 |
execution exit code | |
Enumerations | |
enum | MeasType { MeasTypeDistance, MeasTypeAmbient, MeasTypeBoth } |
Functions | |
static int | OptsCvtArgMeas (const char *argv0, const char *sOptName, char *optarg, void *pOptVal) |
static int | tofNameToInt (const string &str, int &val) |
static int | strToInt (const string &str, int &val) |
int | getch () |
int | kbhit () |
static int | connectSensor (int n) |
static int | readSensorInfo () |
static int | calibrateSensorCrossTalk () |
static int | calibrateSensorOffset () |
static void | readSensorCalibTuneRegs () |
static void | printHdr (int what) |
static void | printMeasurement (int seqnum, int what, double fMeters, double fFlux) |
static int | measure () |
static void | mainInit (int argc, char *argv[]) |
Main initialization. More... | |
int | main (int argc, char *argv[]) |
Main. More... | |
Variables | |
static char * | Argv0 |
the command | |
static bool_t | OptsNoAuto = false |
don't auto-run | |
static int | OptsTimePeriod = 500 |
sense time period (msec) | |
static char * | OptsMeasure = (char *)"range" |
measure range | |
static bool_t | OptsCalibOffset = false |
do [not] calibrate range offset | |
static bool_t | OptsCalibXTalk = false |
do [not] calibrate range crosstalk | |
static const char * | ToFName [] |
static const double | ToFDir [] |
static int | SensorId |
static int | Measure |
static LaeI2C | I2CBus |
static LaeI2CMux | I2CMux (I2CBus) |
static LaeVL6180Mux * | ToFSensor |
static const char * | Sep |
static OptsPgmInfo_T | PgmInfo |
Program information. More... | |
static OptsInfo_T | OptsInfo [] |
Command line options information. | |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main.
argc | Command-line argument count. |
argv | Command-line argument list. |
Definition at line 689 of file laelaps_tof.cxx.
References APP_EC_EXEC, APP_EC_OK, laelaps::LaeI2C::close(), mainInit(), OptsCalibOffset, and OptsCalibXTalk.
|
static |
Main initialization.
argc | Command-line argument count. |
argv | Command-line argument list. |
Definition at line 650 of file laelaps_tof.cxx.
References APP_EC_ARGS, Argv0, OptsInfo, PgmInfo, and PkgInfo.
Referenced by main().
|
static |
Program information.
Definition at line 132 of file laelaps_tof.cxx.
Referenced by mainInit().
|
static |
Definition at line 120 of file laelaps_tof.cxx.
|
static |
Definition at line 101 of file laelaps_tof.cxx.
|
static |
Definition at line 95 of file laelaps_tof.cxx.