mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-25 23:51:35 +00:00
Added Struct for load cells
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <vector>
|
||||
#elif defined(TEENSY)
|
||||
#include <Arduino.h>
|
||||
#include "HX711.h"
|
||||
|
||||
unsigned long last;
|
||||
#endif
|
||||
@@ -21,6 +22,7 @@ unsigned long last;
|
||||
#include "native.h"
|
||||
#elif defined(TEENSY)
|
||||
#include "teensy.h"
|
||||
#include "LoadCells.h"
|
||||
#endif
|
||||
|
||||
Vehicle State;
|
||||
@@ -45,7 +47,11 @@ void setup() {
|
||||
burnStartTimeCalc(State);
|
||||
Serial.println("Starting Height Calculated");
|
||||
delay(1000);
|
||||
loadCellCalibrate();
|
||||
|
||||
LoadCells loadCells;
|
||||
|
||||
init_LoadCells(loadCells);
|
||||
|
||||
Serial.println("Load Cells Calibrated");
|
||||
delay(1000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user