Open Neo-Cai opened 2 months ago
Let me take a look at this , how do I reproduce this bug ?
Thank you! if you go to free play mode here are the steps to reproduce the bug:
There are a few bugs when you change the pulse to something else (eg. 10-30):
You may have to fiddle with the order of "clear pulse" and "add pulse" to stress test the pulse generator but it is not difficult to reproduce one of these bugs.
OKay, I see the problem , will send in a PR shortly
@Neo-Cai I think the pulse_vector and updated_pulse vector persist the data since we don't clear it when the button is pressed, only the sigma x and y vectors are cleared, Once I cleared the data from these 2 explicitly, the adding of square pulse seems to work well.
Expected
In free play mode under pulse parameters, the user should be able to:
Actual
When doing step 2, there is a bug that retains the previous square pulse time. So after setting the first square pulse, you cannot set another square pulse with a different duration. Here is the result of doing step 2 screenshotted below:![image](https://github.com/mvwf/qublitz/assets/108304075/f06fe9c0-aa8e-440e-855c-728586e03dbb)