1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-25 23:51:35 +00:00

Cleaned up PID

This commit is contained in:
bpmcgeeney
2021-09-21 21:42:18 -07:00
parent 382566a8da
commit 9eb9bce77c
4 changed files with 36 additions and 44 deletions

View File

@@ -24,7 +24,7 @@ int main() {
if (!inFile.is_open())
throw std::runtime_error("Could not open file");
std::vector<double> varValueVec = std::vector<double>(17, 0.0);
std::vector<double> varValueVec = std::vector<double>(20, 0.0);
std::string varName, varValue, varUnits;
for (int i; i < 20; i++) {
@@ -66,6 +66,8 @@ int main() {
State.Ki = varValueVec[18];
State.Kd = varValueVec[19];
std::cout << State.Kp << "\n";
std::cout << State.Ki << "\n";
std::cout << State.Kd << "\n";
// Other Properties
@@ -79,8 +81,7 @@ int main() {
bool outcome = sim(State, PrevState);
std::cout << "Finished"
<< "\n";
std::cout << "Finished\n";
if (outcome == 1) {
std::cout << "Sim Result = Success!";