Skip to content
Snippets Groups Projects
Commit 8c7cc246 authored by pkim62@illnois.edu's avatar pkim62@illnois.edu
Browse files

changed dist

parent dd6f6736
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ import numpy as np ...@@ -9,7 +9,7 @@ import numpy as np
import sys import sys
from gpiozero import CPUTemperature from gpiozero import CPUTemperature
def main(): def main():
#got help from https://medium.com/@kevalpatel2106/monitor-the-core-temperature-of-your-raspberry-pi-3ddfdf82989f #got help from https://projects.raspberrypi.org/en/projects/temperature-log/1
HOST = "10.0.0.139" # IP address of your Raspberry PI HOST = "10.0.0.139" # IP address of your Raspberry PI
PORT = 65432 # Port to listen on (non-privileged ports are > 1023) PORT = 65432 # Port to listen on (non-privileged ports are > 1023)
...@@ -33,7 +33,7 @@ def main(): ...@@ -33,7 +33,7 @@ def main():
go_forth() go_forth()
client.sendall(("10 " + str(dist)).encode()) client.sendall(("10 " + str(dist)).encode())
elif data == b"83\r\n": elif data == b"83\r\n":
dist -= 1 dist += 1
go_back() go_back()
client.sendall(("10 " + str(dist)).encode()) client.sendall(("10 " + str(dist)).encode())
elif data == b"65\r\n": elif data == b"65\r\n":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment