kinda fixed it, need to find cause of incorrect cps calculation

This commit is contained in:
Jade (Rose) Rowland 2024-05-13 10:33:18 -04:00
parent cba96049a3
commit 19df19375d
2 changed files with 9 additions and 11 deletions

View file

@ -10,11 +10,8 @@ export class NeoCyclist {
constructor({ onTrigger, onToggle, getTime }) {
this.started = false;
this.cps = 0.5;
this.lastTick = 0; // absolute time when last tick (clock callback) happened
this.getTime = getTime; // get absolute time
this.time_at_last_tick_message = 0;
this.num_cycles_at_cps_change = 0;
this.onToggle = onToggle;
this.latency = 0.1; // fixed trigger time offset
this.cycle = 0;