Fix set_error_rotation_roll: this function was exactly the same as the add function, not setting, just adding...
Fix get_error_rotation_roll: the "get" method should be different between dipoles and the other elements. The angle was calculated with R_in matrix, however, for dipoles the rotation roll is set by changing polynomials A and B, then in this case the angle for dipoles was always returning 0. Now the get method calculates the angle with polynom A for dipoles and with R_in matrix for other elements.
Fix
set_error_rotation_roll
: this function was exactly the same as theadd
function, not setting, just adding... Fixget_error_rotation_roll
: the "get" method should be different between dipoles and the other elements. The angle was calculated with R_in matrix, however, for dipoles the rotation roll is set by changing polynomials A and B, then in this case the angle for dipoles was always returning 0. Now theget
method calculates the angle with polynom A for dipoles and with R_in matrix for other elements.