peripherals  1.4.2
RoadNarrows Robotics Hardware Peripherals Package
Roboteq Small Unit Tests

Fine-grained testing of Roboteq Small motor controller. More...

Functions

static int testMotDummySetSpeed ()
 Sanity test Roboteq-small interface. More...
 
 TEST (MotDummy, setSpeed)
 
static int testMotDummyGetAttrSpeed ()
 Sanity test Roboteq-small interface. More...
 
 TEST (MotDummy, getAttrSpeed)
 
static int testRoboteqSmallSanity ()
 Sanity test Roboteq-small interface. More...
 
 TEST (RoboteqSmall, sanity)
 
static int testRoboteqSmallOpenClose ()
 
 TEST (RoboteqSmall, openClose)
 
static int testRoboteqSmallSetSpeed ()
 
 TEST (RoboteqSmall, setSpeed)
 
static int testRoboteqSmallSetSpeedVec ()
 
 TEST (RoboteqSmall, setSpeedVec)
 

Detailed Description

Fine-grained testing of Roboteq Small motor controller.

Fine-grained testing of Roboteq Small motor controller ST.

Function Documentation

static int testMotDummyGetAttrSpeed ( )
static

Sanity test Roboteq-small interface.

Returns
Returns 0 if test succeeds, else returns < 0.

Definition at line 86 of file ut-MotDummy.cxx.

References TEST().

87 {
88  MotDummy motor;
89  int min,max,step;
90  int rc = motor.getAttrSpeed(&min, &max, &step);
91  printf("Speed Attributes = min:%d max:%d step:%d \n",min, max, step);
92 }
static int testMotDummySetSpeed ( )
static

Sanity test Roboteq-small interface.

Returns
Returns 0 if test succeeds, else returns < 0.

Definition at line 70 of file ut-MotDummy.cxx.

References TEST().

71 {
72  MotDummy motor;
73  return motor.setSpeed(0, 0);
74 }