mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
change image refresh time
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -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);
|
||||||
});
|
});
|
Reference in New Issue
Block a user