change image refresh time

This commit is contained in:
2025-01-06 10:35:54 +01:00
parent 629f9cba92
commit b48eda9735
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -57,5 +57,5 @@ document.addEventListener("DOMContentLoaded", function() {
setInterval(parseData, 1000); setInterval(parseData, 1000);
// Update the image every 200 milliseconds // Update the image every 200 milliseconds
setInterval(updateImage, 200); setInterval(updateImage, 100);
}); });