Hi Thorsten,
I am an accelerator physicist at NSLS-II, currently looking into implementing a similar code as SC with Python and ELEGANT.
I could be wrong, but while trying to understand the flow of support structure roll calculations in SCgetSupportRoll.m, I noticed that the length of a support structure used to compute pitch and yaw might be wrong, if diff(ords)<0 (i.e., the case when the structure starts near the end of a ring, comes around to the beginning of the ring, and ends near the beginning of the ring).
In Lines 79, 80, 82, and 83, I suppose (C-s0(ords(1))-s0(ords(2))) corresponds to the length of the structure. But I think this should be (C-s0(ords(1))+s0(ords(2))) instead (the second minus sign is changed to a plus). Am I wrong?