ChrisRidley
I don't think you can parameterise th2_offset (which is really x_offset) in terms of d-spacing, as if we think of two beams + one specimen being one beam with two displaced specimens, then the displacement needs to be modelled in some real-space coordinates of some type, not in d-space. You need to think about the geometry of what is going on and parameterise it in those terms.
Maybe do it in time?
Now, I have essentially zero experience in TOF, so I don't know if I'm going to be much more help.