From d44c3a76943c90cfcbf336961d9ba3516a1c80dc Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 13 May 2017 16:13:12 -0300 Subject: Several bugs fixed, ready to pull --- Project/TransferFunction.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Project/TransferFunction.h') diff --git a/Project/TransferFunction.h b/Project/TransferFunction.h index 38e31bb..19bd04e 100644 --- a/Project/TransferFunction.h +++ b/Project/TransferFunction.h @@ -33,8 +33,8 @@ class TransferFunction : public ControlElement virtual void SetDenominator(std::vector denominator) { m_denominator = denominator; } virtual void UpdateTFText(); virtual SpaceState GetSpaceState() { return m_ss; } - virtual void CalculateSpaceState(double timeStep = 1e-3, double error = 1e-3); - virtual bool Solve(double input); + virtual void CalculateSpaceState(int maxIteration = 100, double error = 1e-3); + virtual bool Solve(double input, double timeStep); protected: virtual void SetText(wxString numerator, wxString denominator); @@ -53,8 +53,8 @@ class TransferFunction : public ControlElement std::vector m_x; std::vector m_dx; - double m_timeStep = 1e-3; double m_error = 1e-3; + int m_maxIteration = 100; }; #endif // TRANSFERFUNCTION_H -- cgit