Mechatronic Zen Garden  0.1
This webpage contains documentation for the ME 507 term project: Mechatronic Zen Garden.
DataTask.cpp File Reference
#include <Arduino.h>
#include <PrintStream.h>
#include "shares.h"
#include "DataTask.h"

Functions

void task_data (void *p_params)
 Task which sends data to ControlTask.h. More...
 

Variables

float x_ref [37] = {7.000,6.954,6.819,6.598,6.298,5.928,5.500,5.026,4.521,4.000,3.479,2.974,2.500,2.072,1.702,1.402,1.181,1.046,1.000,1.046,1.181,1.402,1.702,2.072,2.500,2.974,3.479,4.000,4.521,5.026,5.500,5.928,6.298,6.598,6.819,6.954,7.000}
 preset reference x position data
 
float y_ref [37] = {4.000,4.521,5.026,5.500,5.928,6.298,6.598,6.819,6.954,7.000,6.954,6.819,6.598,6.298,5.928,5.500,5.026,4.521,4.000,3.479,2.974,2.500,2.072,1.702,1.402,1.181,1.046,1.000,1.046,1.181,1.402,1.702,2.072,2.500,2.974,3.479,4.000}
 preset reference y position data
 
uint8_t data [37] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}
 preset data availability array
 
uint8_t length = 37
 length of data arrays
 

Detailed Description

This class is under development for eventual use with DataTask. It requires further board development for use.

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

Author
Aaron Tran
Cole Stanton
Date
2021-Nov-30 Original file

This class is under development for eventual use with DataTask. It requires further board development for use.

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

Author
Aaron Tran
Cole Stanton
Date
2021-Nov-30 Original file

This file contains a task for sending and receiving data to the Control Task

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

Author
Aaron Tran
Cole Stanton
Date
2021-Dec-1 Original file

This file contains a task for sending and receiving data to the Control Task

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

Author
Aaron Tran
Cole Stanton
Date
2021-Dec-1 Original file

Function Documentation

◆ task_data()

void task_data ( void *  p_params)

Task which sends data to ControlTask.h.

This task sends designs Zen Garden designs to the Control Task. Upon further development, this task would also read from a CSV to obtain that data, retrieve performance data, and print desired data to a CSV.

Parameters
p_paramsA pointer to function parameters which we don't use.