Skip to content

Commit

Permalink
Document gains were picked empirically
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Nov 10, 2022
1 parent d0b49e1 commit 74c1a20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drake_ros_examples/examples/ufo/ufo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ std::unique_ptr<Diagramd> CreateSaucerController() {
target_position_mux->get_input_port(1));

// Forces PidController
// input: estimated state Vector3d p_WS concatenated with v_WS
// input: desired state Vector3d p_WT concatenated with v_WT
// output: Vector3d f_S_W
// input: estimated state Vector3d p_WS concatenated with v_WS
// input: desired state Vector3d p_WT concatenated with v_WT
// output: Vector3d f_S_W
// Gains picked through trial and error
auto* forces_pid_controller = builder.AddSystem<PidControllerd>(
Vector3d{100.0f, 100.0f, 2500.0f}, Vector3d{0.0f, 0.0f, 50.0f},
Vector3d{500.0f, 500.0f, 500.0f});
Expand Down

0 comments on commit 74c1a20

Please sign in to comment.