Skip to content

Commit

Permalink
Changed tunePID() to return the PID itself
Browse files Browse the repository at this point in the history
  • Loading branch information
UvuvDev committed Jan 23, 2024
1 parent 46ba6da commit c47857c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/lemlib/pidtuner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PIDTuner {

~PIDTuner();

bool tunePID();
std::shared_ptr<FAPID> tunePID();
};

} // namespace lemlib
4 changes: 2 additions & 2 deletions src/lemlib/pidtuner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ void PIDTuner::tuneTurning(float targetAngle) {}

void PIDTuner::tuneMisc(float target) {}

bool PIDTuner::tunePID() {
std::shared_ptr<FAPID> PIDTuner::tunePID() {
switch (target) {
case TUNER_TARGET::flywheel: tuneFlywheel(2000, 1); break;
case TUNER_TARGET::catapult: break;
case TUNER_TARGET::distance: break;
case TUNER_TARGET::turning: break;
case TUNER_TARGET::misc: break;
}
return true;
return pid;
}

} // namespace lemlib

0 comments on commit c47857c

Please sign in to comment.