Stimulus flash trigger calculation bugfix and optimization and tests
scan feasibility check in main_ui (not ready)