I've real-time signal, I need to check if the signal crosses a threshold and set a delay for about 1 second. How do I implement that?
if(a_vertical> onThreshold) //what's the expression to set a time delay?
{
ui->rdo_btn_vertical->setStyleSheet(StyleSheetOn1); // On LED
}
else
{
ui->rdo_btn_vertical->setStyleSheet(StyleSheetOff1); // Off LED
}