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 "../../CAN_IDs.h"
#include "comm/utils.hpp"
#include "debugUtils.hpp"
#include "enum_utils.hpp"
#include "model/systemData.hpp"
#include "../utils.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, DASH_ID},
{1, BAMO_RESPONSE_ID},
{2, AS_CU_EMERGENCY_SIGNAL},
{3, MISSION_FINISHED},
{4, AS_CU_ID},
{5, RES_STATE},
{6, RES_READY}}}

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 20 of file communicator.hpp.

◆ fifoExtendedCodes

std::array<Code, 1> fifoExtendedCodes
inline
Initial value:
= {{
{7, 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 32 of file communicator.hpp.