mirror of
https://github.com/Ekokumppanit/Bicyclesim.git
synced 2026-01-26 03:04:09 +00:00
sdfsdf
This commit is contained in:
@@ -41,14 +41,14 @@ $(document).bind('keydown.space', function () {
|
||||
}
|
||||
});
|
||||
|
||||
function speedo() {
|
||||
speed_buffer.push(revs * c());
|
||||
revs = 0;
|
||||
// function speedo() {
|
||||
// speed_buffer.push(revs * c());
|
||||
// revs = 0;
|
||||
|
||||
Session.set('speed', speed_buffer.sum() / 5);
|
||||
}
|
||||
// Session.set('speed', speed_buffer.sum() / 5);
|
||||
// }
|
||||
|
||||
setInterval(speedo, 500);
|
||||
// setInterval(speedo, 500);
|
||||
|
||||
// 5sec, 2 values / sec.
|
||||
var speed_buffer = createRingBuffer(5 * 2);
|
||||
|
||||
Reference in New Issue
Block a user