Commit 22ac038a authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾 Committed by Justin

software/js-drone: Update FPS value

Update FPS value to respect minimum sampling value of open62541 monitored items
parent 06f38aa5
...@@ -26,7 +26,7 @@ md5sum = 1ff50063f5a54712a0bc0ff38fa74630 ...@@ -26,7 +26,7 @@ md5sum = 1ff50063f5a54712a0bc0ff38fa74630
[main] [main]
filename = main.js filename = main.js
md5sum = 5f66cdcc84945749e1f8f7b017e70fc2 md5sum = c22879bb553a0932dd145a58acdf37e6
[pubsub] [pubsub]
filename = pubsub.js filename = pubsub.js
......
...@@ -29,8 +29,8 @@ import { open, exit } from "std"; ...@@ -29,8 +29,8 @@ import { open, exit } from "std";
var pubsubWorker, var pubsubWorker,
worker = new Worker("{{ worker_script }}"), worker = new Worker("{{ worker_script }}"),
user_script = scriptArgs[1], user_script = scriptArgs[1],
// Use the same FPS than browser's requestAnimationFrame // Minimum sampling interval for open62541 monitored items
FPS = 1000 / 60, FPS = 50,
previous_timestamp, previous_timestamp,
can_update = false; can_update = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment