mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-08-02 11:31:34 +00:00
added load cells to csv
This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@@ -29,10 +29,10 @@ LoadCells loadCells;
|
||||
#include "teensy.h"
|
||||
const int lc_clock = 23;
|
||||
|
||||
const int lc_data_0 = 0;
|
||||
const int lc_data_1 = 1;
|
||||
const int lc_data_2 = 2;
|
||||
const int lc_data_3 = 3;
|
||||
const int lc_data_0 = 14;
|
||||
const int lc_data_1 = 15;
|
||||
const int lc_data_2 = 19;
|
||||
const int lc_data_3 = 20;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -107,17 +107,17 @@ void loop() {
|
||||
thrustInfo(State);
|
||||
pidController(State, PrevState);
|
||||
TVC(State, PrevState);
|
||||
|
||||
|
||||
processTVC(State, loadCells);
|
||||
|
||||
State.stepDuration = micros() - last;
|
||||
write2CSV(State);
|
||||
write2CSV(State, loadCells.lc0Value, loadCells.lc1Value, loadCells.lc2Value,
|
||||
loadCells.lc3Value);
|
||||
|
||||
// Set "prev" values for next timestep
|
||||
PrevState = State;
|
||||
|
||||
// state2vec(State, PrevState, stateVector);
|
||||
|
||||
// state2vec(State, PrevState, stateVector);
|
||||
|
||||
State.time += State.stepSize;
|
||||
|
||||
|
Reference in New Issue
Block a user