GDA-5992 if a motor limit is hit, use the LLS and HLS PVs to determine which one has been hit

Do not use the .MSTA values as the Epics Motor Record may 'flip' the direction of the motor compared to the low-level limit switches
Merge branch 'gda-8.40' of ssh://dascgitolite@dasc-git.diamond.ac.uk/gda/gda-epics.git into gda-8.40
Merge branch 'gda-8.40' of ssh://dascgitolite@dasc-git.diamond.ac.uk/gda/gda-epics.git into gda-8.40
Merge branch 'gda-8.40' of ssh://dascgitolite@dasc-git.diamond.ac.uk/gda/gda-epics.git into gda-8.40
Merge branch 'gda-8.40' of ssh://dascgitolite@dasc-git.diamond.ac.uk/gda/gda-epics.git into gda-8.40