diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-10-07 17:56:03 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-10-07 17:56:03 -0300 |
commit | 2552edfb5608ae15600aac38622354fe46701002 (patch) | |
tree | d7e8dfac1cb82081bc21577af8057abeec88f8d2 /Project/IOControlForm.cpp | |
parent | ae9530685962e8d4d88c871ec7f5f896dd0b4a93 (diff) | |
download | PSP.git-2552edfb5608ae15600aac38622354fe46701002.tar.gz PSP.git-2552edfb5608ae15600aac38622354fe46701002.tar.xz PSP.git-2552edfb5608ae15600aac38622354fe46701002.zip |
MIMO fully implemented
Electromechanical adjusted
Some control editor bugfixes
Diffstat (limited to 'Project/IOControlForm.cpp')
-rw-r--r-- | Project/IOControlForm.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Project/IOControlForm.cpp b/Project/IOControlForm.cpp index 592c5be..bb049a1 100644 --- a/Project/IOControlForm.cpp +++ b/Project/IOControlForm.cpp @@ -60,22 +60,22 @@ IOControlForm::IOControlForm(wxWindow* parent, IOControl* ioControl) : IOControl } if(ioFlags & IOControl::IN_INITIAL_MEC_POWER) { - m_choiceOutput->Append(_("Initial mechanical power")); - m_outputFlags.push_back(IOControl::IN_INITIAL_MEC_POWER); - if(m_ioControl->GetValue() == IOControl::IN_INITIAL_MEC_POWER) outChoiceNumber = (int)m_outputFlags.size() - 1; + m_choiceInput->Append(_("Initial mechanical power")); + m_inputFlags.push_back(IOControl::IN_INITIAL_MEC_POWER); + if(m_ioControl->GetValue() == IOControl::IN_INITIAL_MEC_POWER) inChoiceNumber = (int)m_inputFlags.size() - 1; } if(ioFlags & IOControl::IN_INITIAL_TERMINAL_VOLTAGE) { - m_choiceOutput->Append(_("Initial terminal voltage")); - m_outputFlags.push_back(IOControl::IN_INITIAL_TERMINAL_VOLTAGE); + m_choiceInput->Append(_("Initial terminal voltage")); + m_inputFlags.push_back(IOControl::IN_INITIAL_TERMINAL_VOLTAGE); if(m_ioControl->GetValue() == IOControl::IN_INITIAL_TERMINAL_VOLTAGE) - outChoiceNumber = (int)m_outputFlags.size() - 1; + inChoiceNumber = (int)m_inputFlags.size() - 1; } if(ioFlags & IOControl::IN_INITIAL_VELOCITY) { - m_choiceOutput->Append(_("Initial velocity")); - m_outputFlags.push_back(IOControl::IN_INITIAL_VELOCITY); - if(m_ioControl->GetValue() == IOControl::IN_INITIAL_VELOCITY) outChoiceNumber = (int)m_outputFlags.size() - 1; + m_choiceInput->Append(_("Initial velocity")); + m_inputFlags.push_back(IOControl::IN_INITIAL_VELOCITY); + if(m_ioControl->GetValue() == IOControl::IN_INITIAL_VELOCITY) inChoiceNumber = (int)m_inputFlags.size() - 1; } if(inChoiceNumber != -1) { |