Formula Student Electronics & Software
The code for the embedded software
|
#include <Arduino.h>
#include <FlexCAN_T4.h>
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 |
void loop | ( | ) |
void setup | ( | ) |
Definition at line 36 of file message.cpp.
long smooth | ( | ) |
long const int aisPin = 15 |
Definition at line 9 of file message.cpp.
long average = 0 |
Definition at line 14 of file message.cpp.
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> can1 |
Write CSV fields feature example.
Definition at line 4 of file message.cpp.
CAN_message_t msg2 |
Definition at line 6 of file message.cpp.
const int numReadings = 10 |
Definition at line 10 of file message.cpp.
int readIndex = 0 |
Definition at line 12 of file message.cpp.
int readings[numReadings] |
Definition at line 11 of file message.cpp.
long total = 0 |
Definition at line 13 of file message.cpp.