Skip to content

Commit

Permalink
[gimbalrotor] bug fix for under actuated robot: Modify the index of w…
Browse files Browse the repository at this point in the history
…rench alloction matrix
  • Loading branch information
sugikazu75 committed Jun 4, 2024
1 parent 80c577c commit f4e36eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robots/gimbalrotor/src/control/gimbalrotor_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ namespace aerial_robot_control
target_base_thrust_.at(rotor_coef_ * i+1) = f_i[1];
target_base_thrust_.at(rotor_coef_ * i+2) = f_i[2];
}
if(integrated_map_inv(i, YAW) > max_yaw_scale) max_yaw_scale = integrated_map_inv(i, YAW);
if(integrated_map_inv(i, control_dof_ - 1) > max_yaw_scale) max_yaw_scale = integrated_map_inv(i, control_dof_ - 1); // control_dof - 1 = index for yaw axis

last_col += rotor_coef_;
}
candidate_yaw_term_ = pid_controllers_.at(YAW).result() * max_yaw_scale;
Expand Down

0 comments on commit f4e36eb

Please sign in to comment.