RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
Loading...
Searching...
No Matches
manifest::Helpers Namespace Reference

RoveComm Helper Functions. More...

Classes

struct  CToRoveCommType
struct  CToRoveCommType< int8_t >
struct  CToRoveCommType< uint8_t >
struct  CToRoveCommType< int16_t >
struct  CToRoveCommType< uint16_t >
struct  CToRoveCommType< int32_t >
struct  CToRoveCommType< uint32_t >
struct  CToRoveCommType< float >
struct  CToRoveCommType< double >
struct  CToRoveCommType< char >
struct  RoveCommToCType
struct  RoveCommToCType< DataTypes::INT8_T >
struct  RoveCommToCType< DataTypes::UINT8_T >
struct  RoveCommToCType< DataTypes::INT16_T >
struct  RoveCommToCType< DataTypes::UINT16_T >
struct  RoveCommToCType< DataTypes::INT32_T >
struct  RoveCommToCType< DataTypes::UINT32_T >
struct  RoveCommToCType< DataTypes::FLOAT_T >
struct  RoveCommToCType< DataTypes::DOUBLE_T >
struct  RoveCommToCType< DataTypes::CHAR >

Functions

const BoardEntry & FindBoardById (uint16_t unDataId)
const ManifestEntry & FindEntryById (uint16_t unDataId)
constexpr size_t DataTypeSize (DataTypes eDataType)

Detailed Description

RoveComm Helper Functions.

Author
Missouri S&T - Mars Rover Design Team
Date
2026-10-26

Function Documentation

◆ DataTypeSize()

size_t manifest::Helpers::DataTypeSize ( DataTypes eDataType)
constexpr
1245 {
1246 switch (eDataType)
1247 {
1248 case DataTypes::INT8_T: return 1;
1249 case DataTypes::UINT8_T: return 1;
1250 case DataTypes::INT16_T: return 2;
1251 case DataTypes::UINT16_T: return 2;
1252 case DataTypes::INT32_T: return 4;
1253 case DataTypes::UINT32_T: return 4;
1254 case DataTypes::FLOAT_T: return 4;
1255 case DataTypes::DOUBLE_T: return 8;
1256 case DataTypes::CHAR: return 1;
1257 default: return 1;
1258 }
1259 }
@ INT32_T
Definition RoveCommManifest.h:39
@ INT16_T
Definition RoveCommManifest.h:37
@ UINT32_T
Definition RoveCommManifest.h:40
@ INT8_T
Definition RoveCommManifest.h:35
@ UINT8_T
Definition RoveCommManifest.h:36
@ FLOAT_T
Definition RoveCommManifest.h:41
@ UINT16_T
Definition RoveCommManifest.h:38
@ DOUBLE_T
Definition RoveCommManifest.h:42
@ CHAR
Definition RoveCommManifest.h:43
Here is the caller graph for this function:

◆ FindBoardById()

const BoardEntry & manifest::Helpers::FindBoardById ( uint16_t unDataId)
inline
1203 {
1204 switch (static_cast<BoardID>(unDataId / 1000))
1205 {
1206 case BoardID::CORE: return BOARDS[0];
1207 case BoardID::PMS: return BOARDS[1];
1208 case BoardID::NAV: return BOARDS[2];
1209 case BoardID::SIGNALSTACK: return BOARDS[3];
1210 case BoardID::ARM: return BOARDS[4];
1211 case BoardID::AUGER: return BOARDS[5];
1212 case BoardID::AUTONOMY: return BOARDS[6];
1213 case BoardID::CAMERA1: return BOARDS[7];
1214 case BoardID::CAMERA2: return BOARDS[8];
1215 case BoardID::CAMERASERVER: return BOARDS[9];
1216 case BoardID::RAMAN: return BOARDS[10];
1217 case BoardID::DRONEGPS: return BOARDS[11];
1218 case BoardID::ROVESOSIMULATOR: return BOARDS[12];
1219 }
1220 throw std::invalid_argument("Board ID not found in manifest");
1221 }
const std::vector< BoardEntry > BOARDS
BoardEntry Map for Runtime Lookups.
Definition RoveCommManifest.h:917
BoardID
Board ID Enumeration for RoveComm.
Definition RoveCommManifest.h:120
@ AUTONOMY
Definition RoveCommManifest.h:127
@ PMS
Definition RoveCommManifest.h:122
@ ARM
Definition RoveCommManifest.h:125
@ CAMERASERVER
Definition RoveCommManifest.h:130
@ DRONEGPS
Definition RoveCommManifest.h:132
@ AUGER
Definition RoveCommManifest.h:126
@ SIGNALSTACK
Definition RoveCommManifest.h:124
@ RAMAN
Definition RoveCommManifest.h:131
@ NAV
Definition RoveCommManifest.h:123
@ CAMERA2
Definition RoveCommManifest.h:129
@ CAMERA1
Definition RoveCommManifest.h:128
@ CORE
Definition RoveCommManifest.h:121
@ ROVESOSIMULATOR
Definition RoveCommManifest.h:133
Here is the caller graph for this function:

◆ FindEntryById()

const ManifestEntry & manifest::Helpers::FindEntryById ( uint16_t unDataId)
inline
1224 {
1225 const BoardEntry& stBoard = FindBoardById(unDataId);
1226 if (auto it = std::find_if(stBoard.COMMANDS.begin(), stBoard.COMMANDS.end(), [unDataId](const auto& stBoard) { return stBoard.DATA_ID == unDataId; });
1227 it != stBoard.COMMANDS.end())
1228 {
1229 return *it;
1230 }
1231 if (auto it = std::find_if(stBoard.TELEMETRY.begin(), stBoard.TELEMETRY.end(), [unDataId](const auto& stBoard) { return stBoard.DATA_ID == unDataId; });
1232 it != stBoard.TELEMETRY.end())
1233 {
1234 return *it;
1235 }
1236 if (auto it = std::find_if(stBoard.ERRORS.begin(), stBoard.ERRORS.end(), [unDataId](const auto& stBoard) { return stBoard.DATA_ID == unDataId; });
1237 it != stBoard.ERRORS.end())
1238 {
1239 return *it;
1240 }
1241 throw std::invalid_argument("Data ID not found in manifest");
1242 }
const BoardEntry & FindBoardById(uint16_t unDataId)
Definition RoveCommManifest.h:1202
Board Entry Object for RoveComm.
Definition RoveCommManifest.h:143
std::vector< ManifestEntry > TELEMETRY
Definition RoveCommManifest.h:147
std::vector< ManifestEntry > ERRORS
Definition RoveCommManifest.h:147
std::vector< ManifestEntry > COMMANDS
Definition RoveCommManifest.h:147
Here is the call graph for this function:
Here is the caller graph for this function: