Cal Poly NFPA Vehicle Challenge  Soulenoid Cycle, 2021.
Support documentation for various mechatronics components on the vehicle.
Interface.h
Go to the documentation of this file.
1 
7 #ifndef UI_H
8 #define UI_H
9 #include "Arduino.h" // Include Arduino library
10 #include "PrintStream.h" // Include PrintStream libary
11 #include "STM32FreeRTOS.h" // Include FreeRTOS library
12 // Some compiler definitions that make coding a bit easier
14 #define DIRECT 1
15 #define COAST 2
17 #define REGEN 3
19 #define BOOST 4
21 #define PEDAL 5
23 
30 #define CAN_ERROR 9999
31 
41 #define CAN_OTHER 9998
42 
43 // Task functions
44 void task_display(void* params); // The display task function
45 void task_CAN(void* params); // The CAN task function
46 void task_HALL1(void* params); // The hall effect task function
47 
48 #endif // UI_H
task_display
void task_display(void *params)
Task which interacts with the Nextion display.
Definition: Interface.cpp:379
task_CAN
void task_CAN(void *params)
Task which interacts with the CAN bus.
Definition: Interface.cpp:472
task_HALL1
void task_HALL1(void *params)
Task which reads a hall effect sensor.
Definition: Interface.cpp:523