Mechatronic Zen Garden  0.1
This webpage contains documentation for the ME 507 term project: Mechatronic Zen Garden.
main.cpp File Reference
#include <Arduino.h>
#include <PrintStream.h>
#include "taskshare.h"
#include "taskqueue.h"
#include "shares.h"
#include "EncoderDriver.h"
#include "MotorDriver.h"
#include "EMDriver.h"
#include "Control.h"
#include "ControlTask.h"
#include "DataTask.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...
 

Variables

Queue< float > xref (50, "X Data")
 Zen Garden x position data.
 
Queue< float > yref (50, "Y Data")
 Zen Garden y position data.
 
Queue< uint8_t > data_NOTavail (50, "Data")
 Array of mostly zeros with just a one at the end to signify all data has been sent.
 

Detailed Description

This file contains a program for running the Mechatronic Zen Garden.

Source code available here: https://github.com/chstanto/Zen_Garden/blob/main/src/main.cpp

Author
Aaron Tran
Cole Stanton
Date
28-Oct-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.