1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-06-16 15:17:23 +00:00

Merge branch 'loadCellCalibrate' into 'main'

Load cell calibrate

See merge request lander-team/lander-cpp!16
This commit is contained in:
Anson Biggs 2021-11-03 22:44:24 +00:00
commit 0d3c0a9d1c

View File

@ -1,12 +1,20 @@
#include "Vehicle.h" #include "Vehicle.h"
void loadCellCalibrate(); #include <Arduino.h>
double loadCellCalibrate();
void thrustInfo(); void thrustInfo();
void processTVC(); void processTVC();
void write2csv(); void write2csv();
void loadCellCalibrate() { double loadCellCalibrate() {
// place code to calibrate load cells in here // 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() { void thrustInfo() {
// place code to retrieve load cell data and convert to a thrust value in here // place code to retrieve load cell data and convert to a thrust value in here