Browse Source

Robot docu software description added

master
waldluis 1 year ago
parent
commit
2c065573a5
3 changed files with 714 additions and 315 deletions
  1. BIN
      documentation/Robot.docx
  2. 712
    313
      documentation/SmartGardeningProjekt.mdj
  3. 2
    2
      software/roboter/raspy/functions.py

BIN
documentation/Robot.docx View File


+ 712
- 313
documentation/SmartGardeningProjekt.mdj
File diff suppressed because it is too large
View File


+ 2
- 2
software/roboter/raspy/functions.py View File

@@ -249,7 +249,7 @@ def drive_plant_all(client: mqtt.Client, userdata, message: mqtt.MQTTMessage):
thread.start()


def get_position(clients: mqtt.Client, userdata, message: mqtt.MQTTMessage):
def get_position(client: mqtt.Client, userdata, message: mqtt.MQTTMessage):
"""
Callback function for GPS position request
Function to send actual GPS position via MQTT in form of POSITION
@@ -267,7 +267,7 @@ def get_position(clients: mqtt.Client, userdata, message: mqtt.MQTTMessage):
"Position": ""
}

clients.publish(Topics["ROBOT_DATA_POSITION"], json.dumps(position, indent=4), qos=1)
client.publish(Topics["ROBOT_DATA_POSITION"], json.dumps(position, indent=4), qos=1)


def get_batteryStatus(client: mqtt.Client, userdata, message: mqtt.MQTTMessage):

Loading…
Cancel
Save