From dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sun, 31 Dec 2017 17:59:10 -0200 Subject: Math Expression implemented --- Project/Gain.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Project/Gain.cpp') diff --git a/Project/Gain.cpp b/Project/Gain.cpp index 701b470..95107d8 100644 --- a/Project/Gain.cpp +++ b/Project/Gain.cpp @@ -175,9 +175,13 @@ void Gain::Move(wxPoint2DDouble position) UpdatePoints(); } -bool Gain::Solve(double input, double timeStep, double currentTime) +bool Gain::Solve(double* input, double timeStep) { - m_output = input * m_value; + if(!input){ + m_output = 0.0; + return true; + } + m_output = input[0] * m_value; return true; } -- cgit