Skip to content

Commit

Permalink
add missing each, remove experiment annotation from partial model (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo authored Aug 31, 2023
1 parent 39fefea commit 5fdb300
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion A_Modelica/DroneLibrary/Blocks/Control/continuousPID.mo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ model continuousPID
Modelica.Blocks.Continuous.TransferFunction transferFunction1(
b={(kp + ki*2 + kd),(-kp + ki*2 - 2*kd),kd},
a={1,-1,0},
x(fixed=true))
x(each fixed=true))
annotation (Placement(transformation(extent={{4,-10},{24,10}})));
equation

Expand Down
2 changes: 1 addition & 1 deletion A_Modelica/DroneLibrary/Blocks/Control/discreteTF.mo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Modelica.Clocked.RealSignals.Periodic.TransferFunction transferFunction1(
b={(kp + ki*samplePeriod/2 + kd/samplePeriod),(-kp + ki*samplePeriod/2 - 2*
kd/samplePeriod),kd/samplePeriod},
a={1,-1,0},
x(fixed=true))
x(each fixed=true))
annotation (Placement(transformation(extent={{-14,-10},{6,10}})));
Modelica.Clocked.ClockSignals.Clocks.PeriodicRealClock periodicClock(period=
period)
Expand Down
3 changes: 1 addition & 2 deletions A_Modelica/DroneLibrary/Examples/Drone_Template.mo
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ equation
lineColor={215,215,215},
lineThickness=1), Bitmap(
extent={{-98,-98},{98,98}}, fileName="modelica://DroneLibrary/Resources/Images/Otus.jpg")}),
__Dymola_Commands(file="modelica://DroneLibrary/Resources/Scripts/drone_animation_setup.mos" "drone_animation_setup"),
experiment(StopTime=10));
__Dymola_Commands(file="modelica://DroneLibrary/Resources/Scripts/drone_animation_setup.mos" "drone_animation_setup"));
end Drone_Template;

0 comments on commit 5fdb300

Please sign in to comment.