Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
diagBatt.cxx File Reference

Perform Laelaps battery diagnostics. More...

#include <unistd.h>
#include <termios.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <iostream>
#include <fstream>
#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/laeSysDev.h"
#include "Laelaps/RoboClaw.h"
#include "Laelaps/laeGpio.h"
#include "Laelaps/laeWd.h"
#include "Laelaps/laeMotor.h"
#include "laelaps_diag.h"

Go to the source code of this file.

Classes

struct  LaelapsMotorsInfo
 Laelaps motors subsystem information structure. More...
 

Functions

static DiagStats initMotorInterfaces ()
 
static DiagStats testBatteryState (int cnt)
 
static DiagStats deinitMotorInterfaces ()
 
DiagStats runBatteryDiagnostics (bool bAnyKey)
 

Variables

static const char * SubSysName = "Batteries"
 
static LaelapsMotorsInfo MotorsInfo [LaeNumMotorCtlrs]
 Laelaps motors subsystem information. More...
 
static RoboClawComm MotorCtlrComm
 motor ctrl serial communication bus
 
static RoboClawMotorCtlr [LaeNumMotorCtlrs]
 RoboClaw motor controllers.
 

Detailed Description

Perform Laelaps battery diagnostics.

Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
Copyright
© 2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file diagBatt.cxx.

Variable Documentation

LaelapsMotorsInfo MotorsInfo[LaeNumMotorCtlrs]
static
Initial value:
=
{
{
LaeKeyFront, LaeMotorCtlrAddrFront, LaeMotorCtlrIdFront, true, false,
{ {LaeKeyLeftFront, LaeMotorLeft}, {LaeKeyRightFront, LaeMotorRight} }
},
{
LaeKeyRear, LaeMotorCtlrAddrRear, LaeMotorCtlrIdRear, true, false,
{ {LaeKeyLeftRear, LaeMotorLeft}, {LaeKeyRightRear, LaeMotorRight} }
},
}

Laelaps motors subsystem information.

Definition at line 103 of file diagBatt.cxx.