Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
message.cpp File Reference
#include <Arduino.h>
#include <FlexCAN_T4.h>
Include dependency graph for message.cpp:

Go to the source code of this file.

Functions

long smooth ()
 
void setup ()
 
void loop ()
 

Variables

FlexCAN_T4< CAN1, RX_SIZE_256, TX_SIZE_16 > can1
 
CAN_message_t msg2
 
long const int aisPin = 15
 
const int numReadings = 10
 
int readings [numReadings]
 
int readIndex = 0
 
long total = 0
 
long average = 0
 

Function Documentation

◆ loop()

void loop ( )

Definition at line 51 of file message.cpp.

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 36 of file message.cpp.

◆ smooth()

long smooth ( )

Definition at line 16 of file message.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ aisPin

long const int aisPin = 15

Definition at line 9 of file message.cpp.

◆ average

long average = 0

Definition at line 14 of file message.cpp.

◆ can1

FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> can1

Write CSV fields feature example.

Definition at line 4 of file message.cpp.

◆ msg2

CAN_message_t msg2

Definition at line 6 of file message.cpp.

◆ numReadings

const int numReadings = 10

Definition at line 10 of file message.cpp.

◆ readIndex

int readIndex = 0

Definition at line 12 of file message.cpp.

◆ readings

int readings[numReadings]

Definition at line 11 of file message.cpp.

◆ total

long total = 0

Definition at line 13 of file message.cpp.