changes to video settings

This commit is contained in:
2024-12-12 13:27:06 +01:00
parent b86528595e
commit a1b50a3780
3 changed files with 4 additions and 4 deletions

View File

@@ -305,6 +305,6 @@ void CapnSend() {
client.publishMessage("kobuki/cam", string(enc_msg, enc_msg + buf.size()));
cout << "Sent image" << endl;
std::this_thread::sleep_for(std::chrono::milliseconds(1000)); // Send image every 1000ms
std::this_thread::sleep_for(std::chrono::milliseconds(300)); // Send image every 1000ms
}
}

View File

@@ -14,7 +14,7 @@ def on_message(client, userdata, message):
# Create an MQTT client instance
mqtt_client = mqtt.Client()
mqtt_client.username_pw_set("server", "serverwachtwoordofzo")
mqtt_client.connect("localhost", 1883, 60)
mqtt_client.connect("localhost", 1884, 60)
mqtt_client.loop_start()
mqtt_client.subscribe("kobuki/data")
mqtt_client.subscribe("kobuki/cam")

View File

@@ -14,7 +14,7 @@ document.addEventListener("DOMContentLoaded", function() {
body: JSON.stringify({ direction: direction })
})
.then(response => response.json())
.then(data => {
.then(data => {script
console.log("Success:", data);
})
.catch(error => {
@@ -53,5 +53,5 @@ document.addEventListener("DOMContentLoaded", function() {
setInterval(parseData, 1000);
// Update the image every 5 seconds
setInterval(updateImage, 400);
setInterval(updateImage, 200);
});