dlong_pos=(dlong_center_z-dlong_base_z)/np.sin(dlong_angle)# This may be unnecessary as it is already done before if base is the lowest possible position
ifdlong_pos<dlong_low_limit:
print('WARNING: Hitting low software limit on dlong. Recalculating dlong positions.')