peripherals  1.4.2
RoadNarrows Robotics Hardware Peripherals Package
rnr Namespace Reference

RoadNarrows Robotics standard namespace. More...

Classes

class  HIDInput
 Input Human Interface Device Abstract Base Class. More...
 
class  HIDXbox360
 Xbox360 controller HID input class. More...
 
class  IMU
 IMU class. More...
 
class  IMUSensor
 IMU sensor class. More...
 
class  Mot
 
class  MotDummy
 
class  MotRoboteq
 
class  MotRoboteqSmall
 

Enumerations

enum  HIDClass {
  HIDClassUnknown = 0,
  HIDClassKeyboardMouse,
  HIDClassXbox360,
  HIDClassNumOf
}
 Supported HID classes. More...
 
enum  HIDFeatType {
  HIDFeatTypeUnknown = 0,
  HIDFeatTypeBiState,
  HIDFeatTypeRange,
  HIDFeatTypeEnum,
  HIDFeatTypeNumOf
}
 Feature property types. More...
 
enum  Xbox360FeatId {
  Xbox360FeatIdPadUp = 0,
  Xbox360FeatIdPadDown,
  Xbox360FeatIdPadLeft,
  Xbox360FeatIdPadRight,
  Xbox360FeatIdStart,
  Xbox360FeatIdBack,
  Xbox360FeatIdLeftStickClick,
  Xbox360FeatIdRightStickClick,
  Xbox360FeatIdLeftBump,
  Xbox360FeatIdRightBump,
  Xbox360FeatIdCenterX,
  Xbox360FeatIdAButton,
  Xbox360FeatIdBButton,
  Xbox360FeatIdXButton,
  Xbox360FeatIdYButton,
  Xbox360FeatIdLeftTrigger,
  Xbox360FeatIdRightTrigger,
  Xbox360FeatIdLeftJoyX,
  Xbox360FeatIdLeftJoyY,
  Xbox360FeatIdRightJoyX,
  Xbox360FeatIdRightJoyY,
  Xbox360FeatIdLeftRumble,
  Xbox360FeatIdRightRumble,
  Xbox360FeatIdLEDPat,
  Xbox360FeatIdNumOf
}
 Xbox360 Feature IDs. More...
 

Functions

double gToMetersPerSec2 (double g)
 
float gToMetersPerSec2 (float g)
 
double degToRad (double deg)
 
float degToRad (float deg)
 
double cToK (double c)
 
float cToK (float c)
 
double fToK (double f)
 
float fToK (float f)
 

Variables

static const int IMU_OK = 0
 not an error, success More...
 
static const int IMU_ECODE_GEN = 1
 general, unspecified error More...
 
static const int IMU_ECODE_SYS = 2
 system (errno) error More...
 
static const int IMU_ECODE_INTERNAL = 3
 internal error (bug) More...
 
static const int IMU_ECODE_NO_SENSOR = 4
 no sensor More...
 
static const int IMU_ECODE_NO_CAP = 5
 no capabilities More...
 
static const int IMU_ECODE_RANGE = 6
 value out-of-range More...
 
static const int IMU_ECODE_TIMEDOUT = 7
 operation timed out error More...
 
static const int IMU_ECODE_BUSY = 8
 resource busy error More...
 
static const int IMU_ECODE_BADEC = 9
 bad error code More...
 
static const int IMU_ECODE_NUMOF = 10
 number of error codes More...
 
const double SI_g0 = 9.80665
 m/s^2 accel. in standard gravity More...
 
const double SI_K = 273.15
 0 Celsius in Kelvins More...
 
const double SI_PaPsi = 6894.75729
 1 psi in Pascals More...
 
const double SI_PaAtm = 1.01325e5
 1 atmosphere in Pascals More...
 
const double SI_PaBar = 10000
 1 bar in Pascals More...
 

Detailed Description

RoadNarrows Robotics standard namespace.