![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Perform Laelaps hardware and software interface diagnostics. More...
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string>
#include <vector>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/opts.h"
#include "rnr/pkg.h"
#include "Laelaps/laelaps.h"
#include "Laelaps/laeUtils.h"
#include "Laelaps/laeDesc.h"
#include "Laelaps/laeXmlCfg.h"
#include "Laelaps/laeSysDev.h"
#include "Laelaps/RoboClaw.h"
#include "Laelaps/laeMotor.h"
#include "Laelaps/laeI2C.h"
#include "Laelaps/laeI2CMux.h"
#include "version.h"
#include "laelaps_diag.h"
Go to the source code of this file.
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 | |
Functions | |
static DiagStats | prelims () |
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 | OptsMotion = false |
motion option | |
static bool_t | OptsAnyKey = false |
user presses anykey to stop option | |
static const char * | DiagnosticsAvail [] |
Available diagnostics. More... | |
static vector< string > | DiagnosticsToRun |
diagnostics to run | |
static OptsPgmInfo_T | PgmInfo |
Program information. More... | |
static OptsInfo_T | OptsInfo [] |
Command line options information. | |
LaeDesc | RobotDesc |
LaeI2C | I2CBus |
LaeI2CMux | I2CMux (I2CBus) |
LaeWd | WatchDog (I2CBus) |
Perform Laelaps hardware and software interface diagnostics.
This C++ version uses the liblaelaps library, so both it and the hardware are tested.
Definition in file laelaps_diag.cxx.