Commit 753ef007 authored by Daniel Brown's avatar Daniel Brown

Fixed wrong minus sign before it seems

parent e2f7136e
......@@ -1665,7 +1665,7 @@ void fill_optic_motion_coupling(){
x_a2 = m->x_a2[k];
}
fill_mirror_field_to_rot_motion(ROTX, m, z_by_x(G_Omega_rx, -factor_a_x), fcar, a1i_x, a1o_x, a2i_x, a2o_x, ac_1i, ac_1o, ac_2i, ac_2o);
fill_mirror_field_to_rot_motion(ROTX, m, z_by_x(G_Omega_rx, factor_a_x), fcar, a1i_x, a1o_x, a2i_x, a2o_x, ac_1i, ac_1o, ac_2i, ac_2o);
} else if(m->motion_type[k] == ROTY){
hasRotMotion = true;
......@@ -1682,7 +1682,7 @@ void fill_optic_motion_coupling(){
y_a2 = m->x_a2[k];
}
fill_mirror_field_to_rot_motion(ROTY, m, z_by_x(G_Omega_ry, factor_a_x), fcar, a1i_y, a1o_y, a2i_y, a2o_y, ac_1i, ac_1o, ac_2i, ac_2o);
fill_mirror_field_to_rot_motion(ROTY, m, z_by_x(G_Omega_ry, -factor_a_x), fcar, a1i_y, a1o_y, a2i_y, a2o_y, ac_1i, ac_1o, ac_2i, ac_2o);
} else if(m->motion_type[k] == SURFACE) {
// There are 2 indices effectively, the motion index(X, Rx, Ry, S0, S1,...) and surface motion index (S0, S1, S2,...))
......@@ -1695,7 +1695,7 @@ void fill_optic_motion_coupling(){
}
if(hasRotMotion) {
fill_mirror_rot_motion_to_field(fcar, m, factor_x_a, x_a1, x_a2, y_a1, y_a2, ac_1i, ac_2i, tuning1u, tuning1l, tuning2u, tuning2l);
fill_mirror_rot_motion_to_field(fcar, m, cminus(factor_x_a), x_a1, x_a2, y_a1, y_a2, ac_1i, ac_2i, tuning1u, tuning1l, tuning2u, tuning2l);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment