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