Flint: Create a standard goto_click
Closes #3846 (closed)
This PR provides a standard goto_click
to move a motor from the previous scan to a location clicked by the user in the flint plot.
I would like it to be backported to 1.11, so what people dont have to locally patch there beamlines.
Example
DEMO_SESSION [1]: ascan(sx, 0, 1, 10, 0.1, diode1)
DEMO_SESSION [2]: goto_click()
WARNING 2023-07-20 10:36:00,641 flint: Waiting for selection in Flint window.
Moving sx from 1.0000 to 0.3001
DEMO_SESSION [3]: amesh(sx, 0, 1, 5, sy, 1, 2, 3, 0.1, diode1)
DEMO_SESSION [4]: goto_click()
WARNING 2023-07-20 10:56:48,307 flint: Waiting for selection in Flint window.
Moving sx from 1.0000 to 0.3690
Moving sy from 2.0000 to 1.6779
DEMO_SESSION [5]: a2scan(sx, 0,1, sy, 1,2,3,0.1,diode1)
DEMO_SESSION [6]: goto_click()
WARNING 2023-07-20 11:48:59,017 flint: Waiting for selection in Flint window.
Moving sy from 2.0000 to 1.3869
DEMO_SESSION [6]: goto_click()
WARNING 2023-07-20 11:49:17,677 flint: Waiting for selection in Flint window.
Moving sx from 1.0000 to 0.4485
Edited by Valentin Valls