Changing the initial value of illuminance sensor to something around zero+something...
authoramiraj <amiraj.95@uci.edu>
Thu, 8 Aug 2019 20:46:46 +0000 (13:46 -0700)
committeramiraj <amiraj.95@uci.edu>
Thu, 8 Aug 2019 20:46:46 +0000 (13:46 -0700)
IlluminanceMeasurement/IlluminanceMeasurements.groovy

index dbeae2a..cf013ff 100644 (file)
@@ -11,8 +11,8 @@ public class IlluminanceMeasurements {
        private String id = "illuminanceMeasurementsID0"
        private String label = "illuminanceMeasurements0"
        private String displayName = "illuminanceMeasurements0"
-       private int illuminance = 50000
-       private int currentIlluminance = 50000
+       private int illuminance = 5
+       private int currentIlluminance = 5
 
                
        IlluminanceMeasurements(Closure sendEvent, int deviceNumbers, boolean init) {
@@ -21,11 +21,11 @@ public class IlluminanceMeasurements {
                this.illuminanceMeasurements = []
 
                if (init) {
-                       this.illuminance = 50000
-                       this.currentIlluminance = 50000
+                       this.illuminance = 5
+                       this.currentIlluminance = 5
                } else {
-                       this.illuminance = 60000
-                       this.currentIlluminance = 60000
+                       this.illuminance = 20000
+                       this.currentIlluminance = 20000
                }
 
                illuminanceMeasurements.add(new IlluminanceMeasurement(id, label, displayName, this.illuminance))