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:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user