]> defiant.homedns.org Git - ros_wild_thumper.git/commitdiff
christmas: fix stop time
authorErik Andresen <erik@vontaene.de>
Sat, 30 Jun 2018 08:49:40 +0000 (10:49 +0200)
committerErik Andresen <erik@vontaene.de>
Sat, 30 Jun 2018 08:49:40 +0000 (10:49 +0200)
scripts/christmas.py

index ae8c18466cfd15bda8c0e8647d17851b8741f9ff..9f493320037980db2d2f1df6a19c7045c9c32338 100755 (executable)
@@ -23,7 +23,7 @@ if __name__ == "__main__":
        while not rospy.is_shutdown():
                if light <= ldr_thres or val != 0:
                        now = datetime.now()
        while not rospy.is_shutdown():
                if light <= ldr_thres or val != 0:
                        now = datetime.now()
-                       if light <= ldr_thres and now.hour >= 18 and now.hour <= 22:
+                       if light <= ldr_thres and now.hour >= 18 and now.hour < 22:
                                val = max_val
                        else:
                                val = 0
                                val = max_val
                        else:
                                val = 0