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