Minor changes to start without sensors
This commit is contained in:
parent
5338490503
commit
24268d3039
@ -14,11 +14,15 @@ import threading
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from raspy_sensors import RaspySensors
|
from raspy_sensors import RaspySensors
|
||||||
|
|
||||||
from software.defines import Topics, RASPI_CLIENT_ID, MQTT_BROKER_GLOBAL
|
from software.defines import Topics, RASPI_CLIENT_ID, MQTT_BROKER_GLOBAL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region global Varaibles
|
#region global Varaibles
|
||||||
|
|
||||||
sensors: RaspySensors
|
# FIXME Sensor not working
|
||||||
|
#sensors: RaspySensors
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -56,7 +60,9 @@ def drive_plant_thread(plantID, actionID, client: mqtt.Client):
|
|||||||
#CHECK if working properly
|
#CHECK if working properly
|
||||||
|
|
||||||
print("Measuring Sensors")
|
print("Measuring Sensors")
|
||||||
measure_send_data(plantID, actionID, client)
|
|
||||||
|
#FIXME Sensor not working
|
||||||
|
# measure_send_data(plantID, actionID, client)
|
||||||
|
|
||||||
print("Robot driving home")
|
print("Robot driving home")
|
||||||
if plantID % 2 == 0:
|
if plantID % 2 == 0:
|
||||||
@ -176,8 +182,9 @@ def main():
|
|||||||
Runs forever and controlls all robot functions
|
Runs forever and controlls all robot functions
|
||||||
"""
|
"""
|
||||||
# CHECK if global
|
# CHECK if global
|
||||||
global sensors
|
# FIXME Sensor not working
|
||||||
sensors = RaspySensors()
|
# global sensors
|
||||||
|
# sensors = RaspySensors()
|
||||||
client = mqtt.Client(RASPI_CLIENT_ID)
|
client = mqtt.Client(RASPI_CLIENT_ID)
|
||||||
client.on_connect = on_connect
|
client.on_connect = on_connect
|
||||||
client.connect(MQTT_BROKER_GLOBAL)
|
client.connect(MQTT_BROKER_GLOBAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user