summaryrefslogtreecommitdiff
path: root/Avr_PID.mo
diff options
context:
space:
mode:
authorSiddharth112352019-09-03 18:09:16 +0530
committerSiddharth112352019-09-03 18:09:16 +0530
commitb4b6aa36e3486a3544acc52419149b5671f841e9 (patch)
tree66c1783158f23e6d21c77324156fc57e18d4ac67 /Avr_PID.mo
parentf5266f634f4fb4fd39933a83551a01cf446256b8 (diff)
downloadOpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.tar.gz
OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.tar.bz2
OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.zip
Pushing entire Modelica HIL Tasks repoHEADmaster
Diffstat (limited to 'Avr_PID.mo')
-rwxr-xr-xAvr_PID.mo10
1 files changed, 10 insertions, 0 deletions
diff --git a/Avr_PID.mo b/Avr_PID.mo
new file mode 100755
index 0000000..1e98b04
--- /dev/null
+++ b/Avr_PID.mo
@@ -0,0 +1,10 @@
+model Avr_PID
+ inner Modelica_DeviceDrivers.EmbeddedTargets.AVR.Blocks.Microcontroller mcu(platform = Modelica_DeviceDrivers.EmbeddedTargets.AVR.Types.Platform.ATmega328P) annotation(
+ Placement(visible = true, transformation(origin = {-76, 76}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
+ Modelica.Blocks.Continuous.PI PI(T = 10 ^ 20, k = 1) annotation(
+ Placement(visible = true, transformation(origin = {-4, -8}, extent = {{-10, -10}, {10, 10}}, rotation = 90)));
+equation
+
+ annotation(
+ uses(Modelica_DeviceDrivers(version = "1.5.0"), Modelica(version = "3.2.2")));
+end Avr_PID; \ No newline at end of file