diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-08 21:43:17 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-08 21:43:17 -0300 |
commit | 9fb33a91aa22fbce6d0b74529e07af9f7781b916 (patch) | |
tree | 2cd9f042977cf598949e7b29745886abfe1bf342 /Project/Limiter.cpp | |
parent | 74d795cb074b6ae9aa93bcfacee8995d7e6d5945 (diff) | |
download | PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.tar.gz PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.tar.xz PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.zip |
Secondary branch, TF and limiter solution
much work, such results
Diffstat (limited to 'Project/Limiter.cpp')
-rw-r--r-- | Project/Limiter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Project/Limiter.cpp b/Project/Limiter.cpp index 2a0b707..de2b669 100644 --- a/Project/Limiter.cpp +++ b/Project/Limiter.cpp @@ -87,3 +87,12 @@ void Limiter::UpdatePoints() m_nodeList[1]->SetPosition(m_position + wxPoint2DDouble(0, -18)); } } + +bool Limiter::Solve(double input) +{ + m_output = input; + if(m_output > m_upLimit) m_output = m_upLimit; + else if(m_output < m_lowLimit) m_output = m_lowLimit; + + return true; +} |