Classes | Enumerations | Functions | Variables
dbw_polaris_can Namespace Reference

Classes

class  DbwNode
 
class  DbwNodelet
 
class  ModuleVersion
 
struct  MsgBrakeCmd
 
struct  MsgBrakeReport
 
struct  MsgGearCmd
 
struct  MsgGearReport
 
struct  MsgLicense
 
struct  MsgReportAccel
 
struct  MsgReportGyro
 
struct  MsgSteeringCmd
 
struct  MsgSteeringReport
 
struct  MsgThrottleCmd
 
struct  MsgThrottleReport
 
struct  MsgVersion
 
class  PlatformMap
 
class  PlatformVersion
 

Enumerations

enum  {
  ID_BRAKE_CMD = 0x060, ID_BRAKE_REPORT = 0x061, ID_THROTTLE_CMD = 0x062, ID_THROTTLE_REPORT = 0x063,
  ID_STEERING_CMD = 0x064, ID_STEERING_REPORT = 0x065, ID_GEAR_CMD = 0x066, ID_GEAR_REPORT = 0x067,
  ID_REPORT_ACCEL = 0x06B, ID_REPORT_GYRO = 0x06C, ID_LICENSE = 0x07E, ID_VERSION = 0x07F
}
 
enum  LicenseMux {
  LIC_MUX_F0 = 0x00, LIC_MUX_F1 = 0x01, LIC_MUX_F2 = 0x02, LIC_MUX_F3 = 0x03,
  LIC_MUX_F4 = 0x04, LIC_MUX_F5 = 0x05, LIC_MUX_F6 = 0x06, LIC_MUX_F7 = 0x07,
  LIC_MUX_LDATE0 = 0x41, LIC_MUX_LDATE1 = 0x42, LIC_MUX_MAC = 0x80, LIC_MUX_BDATE0 = 0x81,
  LIC_MUX_BDATE1 = 0x82, LIC_MUX_VIN0 = 0x83, LIC_MUX_VIN1 = 0x84, LIC_MUX_VIN2 = 0x85
}
 
enum  Module {
  M_BPEC = 1, M_TPEC = 2, M_STEER = 3, M_SHIFT = 4,
  M_ABS = 5, M_BOO = 6, M_EPS = 7
}
 
enum  Platform {
  P_FORD_CD4 = 0x00, P_FORD_P5 = 0x01, P_FORD_C1 = 0x02, P_FORD_T6 = 0x03,
  P_FORD_U6 = 0x04, P_FORD_CD5 = 0x05, P_FORD_GE1 = 0x06, P_FORD_P702 = 0x07,
  P_FCA_RU = 0x10, P_FCA_WK2 = 0x11, P_POLARIS_GEM = 0x80, P_POLARIS_RZR = 0x81
}
 

Functions

static void dispatchAssertSizes ()
 
static const char * moduleToString (Module x)
 
static bool operator!= (const PlatformVersion &x, const ModuleVersion &y)
 
static bool operator!= (const PlatformVersion &x, const PlatformMap &map)
 
static bool operator< (const PlatformVersion &x, const ModuleVersion &y)
 
static bool operator< (const PlatformVersion &x, const PlatformMap &map)
 
static bool operator<= (const PlatformVersion &x, const ModuleVersion &y)
 
static bool operator<= (const PlatformVersion &x, const PlatformMap &map)
 
static bool operator== (const PlatformVersion &x, const ModuleVersion &y)
 
static bool operator== (const PlatformVersion &x, const PlatformMap &map)
 
static bool operator> (const PlatformVersion &x, const ModuleVersion &y)
 
static bool operator> (const PlatformVersion &x, const PlatformMap &map)
 
static bool operator>= (const PlatformVersion &x, const ModuleVersion &y)
 
static bool operator>= (const PlatformVersion &x, const PlatformMap &map)
 
static const char * platformToString (Platform x)
 
static float throttlePedalFromPercent (float percent)
 
static float throttlePercentFromPedal (float pedal)
 

Variables

PlatformMap FIRMWARE_LATEST ({ {PlatformVersion(P_POLARIS_GEM, M_TPEC, ModuleVersion(1, 2, 2))}, {PlatformVersion(P_POLARIS_GEM, M_STEER, ModuleVersion(1, 2, 2))}, {PlatformVersion(P_POLARIS_GEM, M_BOO, ModuleVersion(1, 2, 2))}, {PlatformVersion(P_POLARIS_RZR, M_TPEC, ModuleVersion(0, 4, 2))}, {PlatformVersion(P_POLARIS_RZR, M_STEER, ModuleVersion(0, 4, 2))}, {PlatformVersion(P_POLARIS_RZR, M_BOO, ModuleVersion(0, 4, 2))}, })
 
struct {
   float   dbw_polaris_can::pedal
 
   float   dbw_polaris_can::percent
 
THROTTLE_TABLE []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_BRAKE_CMD 
ID_BRAKE_REPORT 
ID_THROTTLE_CMD 
ID_THROTTLE_REPORT 
ID_STEERING_CMD 
ID_STEERING_REPORT 
ID_GEAR_CMD 
ID_GEAR_REPORT 
ID_REPORT_ACCEL 
ID_REPORT_GYRO 
ID_LICENSE 
ID_VERSION 

Definition at line 329 of file dispatch.h.

◆ LicenseMux

Enumerator
LIC_MUX_F0 
LIC_MUX_F1 
LIC_MUX_F2 
LIC_MUX_F3 
LIC_MUX_F4 
LIC_MUX_F5 
LIC_MUX_F6 
LIC_MUX_F7 
LIC_MUX_LDATE0 
LIC_MUX_LDATE1 
LIC_MUX_MAC 
LIC_MUX_BDATE0 
LIC_MUX_BDATE1 
LIC_MUX_VIN0 
LIC_MUX_VIN1 
LIC_MUX_VIN2 

Definition at line 203 of file dispatch.h.

◆ Module

Enumerator
M_BPEC 
M_TPEC 
M_STEER 
M_SHIFT 
M_ABS 
M_BOO 
M_EPS 

Definition at line 93 of file PlatformVersion.h.

◆ Platform

Enumerator
P_FORD_CD4 
P_FORD_P5 
P_FORD_C1 
P_FORD_T6 
P_FORD_U6 
P_FORD_CD5 
P_FORD_GE1 
P_FORD_P702 
P_FCA_RU 
P_FCA_WK2 
P_POLARIS_GEM 
P_POLARIS_RZR 

Definition at line 77 of file PlatformVersion.h.

Function Documentation

◆ dispatchAssertSizes()

static void dbw_polaris_can::dispatchAssertSizes ( )
static

Definition at line 313 of file dispatch.h.

◆ moduleToString()

static const char* dbw_polaris_can::moduleToString ( Module  x)
static

Definition at line 121 of file PlatformVersion.h.

◆ operator!=() [1/2]

static bool dbw_polaris_can::operator!= ( const PlatformVersion x,
const ModuleVersion y 
)
static

Definition at line 153 of file PlatformVersion.h.

◆ operator!=() [2/2]

static bool dbw_polaris_can::operator!= ( const PlatformVersion x,
const PlatformMap map 
)
static

Definition at line 146 of file PlatformMap.h.

◆ operator<() [1/2]

static bool dbw_polaris_can::operator< ( const PlatformVersion x,
const ModuleVersion y 
)
static

Definition at line 148 of file PlatformVersion.h.

◆ operator<() [2/2]

static bool dbw_polaris_can::operator< ( const PlatformVersion x,
const PlatformMap map 
)
static

Definition at line 141 of file PlatformMap.h.

◆ operator<=() [1/2]

static bool dbw_polaris_can::operator<= ( const PlatformVersion x,
const ModuleVersion y 
)
static

Definition at line 150 of file PlatformVersion.h.

◆ operator<=() [2/2]

static bool dbw_polaris_can::operator<= ( const PlatformVersion x,
const PlatformMap map 
)
static

Definition at line 143 of file PlatformMap.h.

◆ operator==() [1/2]

static bool dbw_polaris_can::operator== ( const PlatformVersion x,
const ModuleVersion y 
)
static

Definition at line 152 of file PlatformVersion.h.

◆ operator==() [2/2]

static bool dbw_polaris_can::operator== ( const PlatformVersion x,
const PlatformMap map 
)
static

Definition at line 145 of file PlatformMap.h.

◆ operator>() [1/2]

static bool dbw_polaris_can::operator> ( const PlatformVersion x,
const ModuleVersion y 
)
static

Definition at line 149 of file PlatformVersion.h.

◆ operator>() [2/2]

static bool dbw_polaris_can::operator> ( const PlatformVersion x,
const PlatformMap map 
)
static

Definition at line 142 of file PlatformMap.h.

◆ operator>=() [1/2]

static bool dbw_polaris_can::operator>= ( const PlatformVersion x,
const ModuleVersion y 
)
static

Definition at line 151 of file PlatformVersion.h.

◆ operator>=() [2/2]

static bool dbw_polaris_can::operator>= ( const PlatformVersion x,
const PlatformMap map 
)
static

Definition at line 144 of file PlatformMap.h.

◆ platformToString()

static const char* dbw_polaris_can::platformToString ( Platform  x)
static

Definition at line 103 of file PlatformVersion.h.

◆ throttlePedalFromPercent()

static float dbw_polaris_can::throttlePedalFromPercent ( float  percent)
inlinestatic

Definition at line 80 of file pedal_lut.h.

◆ throttlePercentFromPedal()

static float dbw_polaris_can::throttlePercentFromPedal ( float  pedal)
inlinestatic

Definition at line 104 of file pedal_lut.h.

Variable Documentation

◆ FIRMWARE_LATEST

◆ pedal

float dbw_polaris_can::pedal

Definition at line 106 of file pedal_lut.h.

◆ percent

float dbw_polaris_can::percent

Definition at line 106 of file pedal_lut.h.

◆ THROTTLE_TABLE

const { ... } dbw_polaris_can::THROTTLE_TABLE[]
Initial value:
= {
{0.200, 0.000},
{0.300, 0.001},
{0.800, 1.000},
}


dbw_polaris_can
Author(s): Kevin Hallenbeck
autogenerated on Thu Jan 4 2024 03:36:18