I tested the file you posted. I had to massage it to remove carriage returns.
It behaves normally on 4.x:
- The target in Ekos is now the star that is being slewed to, even though the slew is still in progress. It is no longer the previous star.
- The popup notification that the mount has reached the target only happens when the slew has actually ended.
- The 'Eq. Coordinates' in INDI goes yellow when the slew is in progress, and then green when the slew ended.
So all good on my side.
We need this to go into INDI's repo quickly, because it affects lots of people, not just those who do meridian flips.
Please update the pull request to include the attached code.
It is the same functionality as yours, but minus the Windows vs. Linux line ending (carriage return removed).
Also, the comments are in the correct place (on the condition line), so easier to read.
Now, running with latest FirmWare on IOptron GEM45 I have the following observations:
Meridian Flip from OTA on West side: Tested 4 times all successfully conducted.
Meridian Flip from OTA on East side: Tested 3 times all failing!
Symptom is: every few seconds: Doing Flip, no movement Doing flip, no movement... Status switches between Tracking and Stopped
May be Meridian flip from East side is not so usual? Here at high Latitudes (Norway) it definitely can happen as objects that are always up are tracked and captured.
I saw that, but have been testing with capture sequence and without. All now worked as expected with OTA to West. The tests with OTA to the East where all done without any capture sequence and did not work.
I think that the Flip should occur also without sequence running just tracking an object.