1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-08-17 02:24:50 +00:00

Update to load cell calibration and initialize lc

This commit is contained in:
Matthew Robinaugh
2021-11-10 14:36:31 -07:00
parent 541d7f4281
commit 1ec624cc55
2 changed files with 11 additions and 6 deletions

View File

@@ -1,13 +1,14 @@
#include "Vehicle.h"
#include "LoadCells.h"
void thrustInfo(struct Vehicle &);
void processTVC(struct Vehicle &);
void processTVC(struct LoadCells &);
void write2CSV(struct outVector &, struct Vehicle &);
void printSimResults(struct Vehicle &);
double loadCellCalibrate(struct LoadCells &);
double loadCellCalibrate(HX711 loadCell);
double loadCellCalibrate(LoadCells &loadCells) {
double loadCellCalibrate(HX711 loadCell) {
// place code to calibrate load cells in here
double loadTotal = 0.0;
for (double t = 0; t == 10; ++t) {
@@ -59,7 +60,7 @@ void thrustInfo(Vehicle &State) {
}
}
void processTVC(Vehicle &State) {
void processTVC(LoadCells &loadCells) {
if (State.time == 0) {
Serial.println("WARNING: processTVC not implemented for TEENSY");
}