Skip to content

Commit c9de1da

Browse files
committed
Removed problematic throw in DigitalPID.cc on Ki / Tr
1 parent efa5c4c commit c9de1da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/pid/DigitalPID.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ void DigitalPID::Initialize(const PIDGains& gains, double sampleTime, double sat
6363
}
6464

6565
// Alternatively, check if Ki / Tr is too large
66-
double ratio = g_.Ki / g_.Tr;
67-
if (ratio > 1000.0) { // Threshold can be adjusted based on system specifics
68-
throw std::invalid_argument("Error: Ki / Tr ratio (" + std::to_string(ratio) + ") is very high, which may cause instability.");
69-
}
66+
// double ratio = g_.Ki / g_.Tr;
67+
// if (ratio > 1000.0) { // Threshold can be adjusted based on system specifics
68+
// throw std::invalid_argument("Error: Ki / Tr ratio (" + std::to_string(ratio) + ") is very high, which may cause instability.");
69+
// }
7070
}
7171

7272
Reset();

0 commit comments

Comments
 (0)