Cal Poly NFPA Vehicle Challenge  Soulenoid Cycle, 2021.
Support documentation for various mechatronics components on the vehicle.
main.cpp File Reference
#include "Arduino.h"
#include "PrintStream.h"
#include "STM32FreeRTOS.h"
#include "Interface.h"

Functions

void setup ()
 Arduino setup function which runs once at program startup. More...
 
void loop ()
 Arduino's low-priority loop function, which we don't use. More...
 

Detailed Description

This file contains the main program structure for the vehicle's interface controller. It creates three RTOS tasks and begins the task scheduler. The three tasks are used with the custom Interface header file.

Author
Jordan Kochavi
Date
8 Dec 2020 Original file

Function Documentation

◆ loop()

void loop ( )

Arduino's low-priority loop function, which we don't use.

A non-RTOS Arduino program runs all of its continuously running code in this function after setup() has finished. When using FreeRTOS, loop() implements a low priority task on most microcontrollers, and crashes on some others, so we'll not use it.

◆ setup()

void setup ( )

Arduino setup function which runs once at program startup.

This function sets up a serial port for communication and creates the tasks which will be run.