threshold(0.5)
{ }
+BinaryControl::~BinaryControl()
+{ }
+
void BinaryControl::set_threshold(float t)
{
threshold = t;
if(!state)
{
state = true;
+ rising_edge = true;
signal_press.emit();
}
}
if(state)
{
state = false;
+ falling_edge = true;
signal_release.emit();
}
}