summaryrefslogtreecommitdiffstats
path: root/Project/IOControl.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-10-07 17:56:03 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-10-07 17:56:03 -0300
commit2552edfb5608ae15600aac38622354fe46701002 (patch)
treed7e8dfac1cb82081bc21577af8057abeec88f8d2 /Project/IOControl.cpp
parentae9530685962e8d4d88c871ec7f5f896dd0b4a93 (diff)
downloadPSP.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/IOControl.cpp')
-rw-r--r--Project/IOControl.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/Project/IOControl.cpp b/Project/IOControl.cpp
index da3ef03..2479f47 100644
--- a/Project/IOControl.cpp
+++ b/Project/IOControl.cpp
@@ -152,6 +152,7 @@ void IOControl::Rotate(bool clockwise)
wxString IOControl::GenerateText()
{
wxString omega = wxString::FromUTF8("\xCF\x89");
+ wxString subZero = wxString::FromUTF8("\xE2\x82\x92");
switch(m_value) {
case IN_TERMINAL_VOLTAGE: {
@@ -179,12 +180,16 @@ wxString IOControl::GenerateText()
return _("Pm");
} break;
case IN_INITIAL_TERMINAL_VOLTAGE: {
- m_ioNodeType = Node::NODE_IN;
- return _("Vt0");
+ m_ioNodeType = Node::NODE_OUT;
+ return _("Vt") + subZero;
} break;
case IN_INITIAL_MEC_POWER: {
- m_ioNodeType = Node::NODE_IN;
- return _("Pm0");
+ m_ioNodeType = Node::NODE_OUT;
+ return _("Pm") + subZero;
+ } break;
+ case IN_INITIAL_VELOCITY: {
+ m_ioNodeType = Node::NODE_OUT;
+ return omega + subZero;
} break;
}
return "";