Skip to content

Commit

Permalink
Fix unit error in RobotR3.OneAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Apr 5, 2023
1 parent 64b1f57 commit eccdade
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -4,6 +4,7 @@ model OneAxis

extends Modelica.Icons.Example;
parameter SI.Mass mLoad(min=0)=15 "Mass of load";
parameter SI.Length rg = sqrt(1.3) "Radius of gyration of load";
parameter Real kp=5 "Gain of position controller of axis";
parameter Real ks=0.5 "Gain of speed controller of axis";
parameter SI.Time Ts=0.05
Expand All @@ -27,7 +28,7 @@ model OneAxis
kp=kp,
ks=ks,
Ts=Ts) annotation (Placement(transformation(extent={{20,0},{40,20}})));
Modelica.Mechanics.Rotational.Components.Inertia load(J=1.3*mLoad)
Modelica.Mechanics.Rotational.Components.Inertia load(J=rg^2*mLoad)
annotation (Placement(transformation(extent={{60,0},{80,20}})));
Utilities.PathPlanning1 pathPlanning(
swingTime=swingTime,
Expand Down

0 comments on commit eccdade

Please sign in to comment.