summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumeet Koli2018-06-27 13:14:10 +0530
committerSumeet Koli2018-06-27 13:14:10 +0530
commite100b91a6533f1eaceda2afc3162ec393f4e5475 (patch)
tree49f5c28daa3ba5e64bfd8ac985a6ceaf6f7708df
parent773e2f1fcd71c2a6a857ca5ad6fea748b0962d98 (diff)
downloadOpenModelicaEmbedded-1-e100b91a6533f1eaceda2afc3162ec393f4e5475.tar.gz
OpenModelicaEmbedded-1-e100b91a6533f1eaceda2afc3162ec393f4e5475.tar.bz2
OpenModelicaEmbedded-1-e100b91a6533f1eaceda2afc3162ec393f4e5475.zip
Bug fixes
-rw-r--r--Firmware/Arduino/pidmata3/pidmata3.ino2
-rw-r--r--package.mo4
2 files changed, 3 insertions, 3 deletions
diff --git a/Firmware/Arduino/pidmata3/pidmata3.ino b/Firmware/Arduino/pidmata3/pidmata3.ino
index 3cfadbc..ee8b141 100644
--- a/Firmware/Arduino/pidmata3/pidmata3.ino
+++ b/Firmware/Arduino/pidmata3/pidmata3.ino
@@ -29,7 +29,7 @@
#include <AutoPID.h>
//Comment the macro defined below "#define PID" if you are not using PID, else uncomment it and follow further instructions.
-#define PID
+//#define PID
//------------PID values----------------
// Pin 6 - setPoint (input value)
diff --git a/package.mo b/package.mo
index ec26812..e04f7f1 100644
--- a/package.mo
+++ b/package.mo
@@ -381,10 +381,10 @@ end BlinkLed;
model SimpleONOFF "A simple On/Off controller"
extends Modelica.Icons.Example;
OpenModelicaEmbedded.Boards.Arduino arduino(Port = "/dev/ttyACM0") annotation(Placement(visible = true, transformation(origin = {0, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
- OpenModelicaEmbedded.Pins.AnalogInput analogInput1(MaxValue = 3.3 * 100,Pin = 16, adcResolution = 12) annotation(Placement(visible = true, transformation(origin = {30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
+ OpenModelicaEmbedded.Pins.AnalogInput analogInput1(MaxValue = 1023,Pin = 16, adcResolution = 10) annotation(Placement(visible = true, transformation(origin = {30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Sources.Constant Reference(k = 40) annotation(Placement(visible = true, transformation(origin = {35, -25}, extent = {{-10, -10}, {10, 10}}, rotation = -180)));
Modelica.Blocks.Math.Add add1(k2 = +1, k1 = -1) annotation(Placement(visible = true, transformation(origin = {-0, -25}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
- Pins.DigitalOutput digitalOutput(Pin = 30) annotation(Placement(visible = true, transformation(origin = {-30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
+ Pins.DigitalOutput digitalOutput(Pin = 9) annotation(Placement(visible = true, transformation(origin = {-30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Logical.Hysteresis hysteresis(uLow = -1, uHigh = 1) annotation(Placement(visible = true, transformation(origin = {-30, -25}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
Modelica_DeviceDrivers.Blocks.OperatingSystem.SynchronizeRealtime synchronizeRealtime1 annotation(
Placement(visible = true, transformation(origin = {42.5, 42.5}, extent = {{-7.5, -7.5}, {7.5, 7.5}}, rotation = 0)));