diff --git a/include/teensy.h b/include/teensy.h index 4669597..8e15ad9 100644 --- a/include/teensy.h +++ b/include/teensy.h @@ -1,12 +1,20 @@ #include "Vehicle.h" -void loadCellCalibrate(); +#include + +double loadCellCalibrate(); void thrustInfo(); void processTVC(); void write2csv(); -void loadCellCalibrate() { +double loadCellCalibrate() { // place code to calibrate load cells in here + double loadTotal; + for (double t = 0; t == 10; ++t) { + loadTotal += 1; + delay(15); + } + return loadTotal / 10; } void thrustInfo() { // place code to retrieve load cell data and convert to a thrust value in here