Commit 0e0abf0d authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix missing transformers call in LinkAnalogOutputToAnalogInput

parent 01e14ff8
......@@ -351,15 +351,15 @@ void LinkAnalogOutputToAnalogInput::ensureValid (void) {
}
void LinkAnalogOutputToAnalogInput::syncNormal (void) {
m_input->set_valRaw (MathUtils::convert (m_output->get_valRaw (),
m_output->get_minRaw (), m_output->get_maxRaw (),
m_input->get_minRaw (), m_input->get_maxRaw ()));
m_input->set_valRaw (transformNormal (MathUtils::convert (m_output->get_valRaw (),
m_output->get_minRaw (), m_output->get_maxRaw (),
m_input->get_minRaw (), m_input->get_maxRaw ())));
}
void LinkAnalogOutputToAnalogInput::syncReverse (void) {
m_output->set_valRaw (MathUtils::convert (m_input->get_valRaw (),
m_input->get_minRaw (), m_input->get_maxRaw (),
m_output->get_minRaw (), m_output->get_maxRaw ()));
m_output->set_valRaw (transformReverse (MathUtils::convert (m_input->get_valRaw (),
m_input->get_minRaw (), m_input->get_maxRaw (),
m_output->get_minRaw (), m_output->get_maxRaw ())));
}
LinkDigitalOutputToDigitalInput::LinkDigitalOutputToDigitalInput (QObject * parent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment