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

Go to the source code of this file.

Macros

#define NEXTION_PORT   Serial1
 

Functions

EasyNex myNex (NEXTION_PORT)
 
int mapSensorValueToSwitchNumber (int sensorValue)
 
void displaySetup ()
 
void displayUpdate ()
 

Variables

int rpm = 0
 
int soc = 0
 
int current = 0
 
int speedInt = 0
 
int switchPin = 14
 
int ACCurrent = 0
 
int motorTemp = 0
 
int lowTemp = 0
 
int sensorValue = 0
 
int highTemp = 0
 
int currentPage = 0
 
int packVoltage = 0
 
int powerStageTemp = 0
 

Macro Definition Documentation

◆ NEXTION_PORT

#define NEXTION_PORT   Serial1

Definition at line 7 of file display.cpp.

Function Documentation

◆ displaySetup()

void displaySetup ( )

Definition at line 36 of file display.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayUpdate()

void displayUpdate ( )

Definition at line 41 of file display.cpp.

Here is the call graph for this function:

◆ mapSensorValueToSwitchNumber()

int mapSensorValueToSwitchNumber ( int  sensorValue)

Definition at line 25 of file display.cpp.

Here is the caller graph for this function:

◆ myNex()

EasyNex myNex ( NEXTION_PORT  )
Here is the caller graph for this function:

Variable Documentation

◆ ACCurrent

int ACCurrent = 0

Definition at line 16 of file display.cpp.

◆ current

int current = 0

Definition at line 13 of file display.cpp.

◆ currentPage

int currentPage = 0

Definition at line 21 of file display.cpp.

◆ highTemp

int highTemp = 0

Definition at line 20 of file display.cpp.

◆ lowTemp

int lowTemp = 0

Definition at line 18 of file display.cpp.

◆ motorTemp

int motorTemp = 0

Definition at line 17 of file display.cpp.

◆ packVoltage

int packVoltage = 0

Definition at line 22 of file display.cpp.

◆ powerStageTemp

int powerStageTemp = 0

Definition at line 23 of file display.cpp.

◆ rpm

int rpm = 0

Definition at line 11 of file display.cpp.

◆ sensorValue

int sensorValue = 0

Definition at line 19 of file display.cpp.

◆ soc

int soc = 0

Definition at line 12 of file display.cpp.

◆ speedInt

int speedInt = 0

Definition at line 14 of file display.cpp.

◆ switchPin

int switchPin = 14

Definition at line 15 of file display.cpp.