More time and more timestamp digits

pull/3490/head
pinq- 2024-04-21 11:07:05 +03:00
parent 0036701535
commit 156255bf0d
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
//var acc;
var HZ = 100;
var SAMPLES = 5*HZ; // 5 seconds
var SAMPLES = 8*HZ; // 8 seconds
var SCALE = 5000;
var THRESH = 1.04;
var accelx = new Int16Array(SAMPLES);
@ -27,7 +27,7 @@ function accelHandlerRecord(a) {"ram"
accelx[i] = a.x*SCALE*2;
accely[i] = -a.y*SCALE*2;
accelz[i] = a.z*SCALE*2;
timestep[i] = (getTime() - tStart)*100;
timestep[i] = (getTime() - tStart)*1000;
if (accelIdx>=SAMPLES) recordStop();
}
function recordStart() {"ram"

View File

@ -37,7 +37,7 @@ function getData() {
</div>`;
promise = promise.then(function() {
document.querySelector(`.btn[fn='${fn}'][act='save']`).addEventListener("click", function() {
Util.saveCSV(fn.slice(0,-4), "X,Y,Z\n"+fileData[fn]);
Util.saveCSV(fn.slice(0,-4), "Time,X,Y,Z\n"+fileData[fn]);
});
document.querySelector(`.btn[fn='${fn}'][act='delete']`).addEventListener("click", function() {
Util.showModal("Deleting...");