Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
communicator.hpp File Reference
#include <Arduino.h>
#include <FlexCAN_T4.h>
#include <string>
#include "comm/communicatorSettings.hpp"
#include "comm/utils.hpp"
#include "debugUtils.hpp"
#include "enum_utils.hpp"
#include "model/systemData.hpp"
Include dependency graph for communicator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Communicator
 Class that contains definitions of typical messages to send via CAN It serves only as an example of the usage of the strategy pattern, where the communicator is the strategy. More...
 

Variables

std::array< Code, 7 > fifoCodes
 Array of standard CAN message codes to be used for FIFO filtering Each Code struct contains a key and a corresponding message ID.
 
std::array< Code, 1 > fifoExtendedCodes
 Array of extended CAN message codes to be used for FIFO filtering Contains the key and corresponding message ID for extended messages.
 

Variable Documentation

◆ fifoCodes

std::array<Code, 7> fifoCodes
inline
Initial value:
= {{{0, C1_ID},
{4, AS_CU_ID},
{5, RES_STATE},
{6, RES_READY}}}
#define C1_ID
Definition main.cpp:30
constexpr auto AS_CU_EMERGENCY_SIGNAL
constexpr auto RES_READY
constexpr auto RES_STATE
constexpr auto MISSION_FINISHED
constexpr auto AS_CU_ID
#define BAMO_RESPONSE_ID
Definition logging.h:22

Array of standard CAN message codes to be used for FIFO filtering Each Code struct contains a key and a corresponding message ID.

Definition at line 18 of file communicator.hpp.

◆ fifoExtendedCodes

std::array<Code, 1> fifoExtendedCodes
inline
Initial value:
= {{
}}
constexpr auto STEERING_ID

Array of extended CAN message codes to be used for FIFO filtering Contains the key and corresponding message ID for extended messages.

Definition at line 30 of file communicator.hpp.