Skip to content

Commit

Permalink
Merge branch 'other_side' into other_side_MTKv9
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Jun 5, 2024
2 parents 9c0edb9 + f309e3a commit 25f452b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 904 deletions.
14 changes: 13 additions & 1 deletion docs/src/examples/robot.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,19 @@ plot!(sol, idxs = [
], sp=7:12, lab="Position error", link=:x)
plot!(xlabel=[fill("", 1, 9) fill("Time [s]", 1, 3)])
```
We see that after an initial transient, the robot controller converges to tracking the reference trajectory well.
We see that after an initial transient, the robot controller converges to tracking the reference trajectory well. However, since the first three axes of the robot are modeled as slightly flexible, and we are ultimately interested in the tracking performance _after_ the gear box, we plot also this tracking error
```@example robot
plot(sol, idxs = [
robot.axis1.controller.feedback1.output.u
robot.axis2.controller.feedback1.output.u
robot.axis3.controller.feedback1.output.u
], layout=(1,3), lab="Position error, motor side", link=:x)
plot!(sol, idxs = [
robot.pathPlanning.controlBus.axisControlBus1.angle_ref - robot.axis1.motor.Jmotor.phi / ( -105)
robot.pathPlanning.controlBus.axisControlBus2.angle_ref - robot.axis2.motor.Jmotor.phi / (210)
robot.pathPlanning.controlBus.axisControlBus3.angle_ref - robot.axis3.motor.Jmotor.phi / (60)
], lab="Position error, arm side")
```



Expand Down
Loading

0 comments on commit 25f452b

Please sign in to comment.