Is there anyway to fix this?
Not until I have some idea what the error might be. I need to think on that a bit. (Actually, I need to think on that A LOT)
Can you give me some input about what fluctuations you see?
And do you know why if I call "quad_on" command but not use "quad_limit" after that, the motor doesn't move at all. The same happens to the GUI.
Not yet! I have been perusing the code but did not see an obvious error.
Unfortunately I don't have access to a motor with encoder at the moment as a lot of my equipment is in storage.
I'll see what I can dig out over the weekend and come back to you.
p.s. I did see an error in the GUI which I have fixed:
Code: Select all
// Pick up other flags which might have been set previously
// (seq is: quad-on, change max/min/slow, quad off, quad-on)
mess[2] |= mtrptr->cb_quad_max_on ->isChecked() ? QUAD_TOP : 0x00;
mess[2] |= mtrptr->cb_quad_min_on ->isChecked() ? QUAD_BOT : 0x00;
mess[2] |= mtrptr->cb_quad_slow_on->isChecked() ? QUAD_GOSLOW : 0x00;