You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//if (ypos >= panel.plotBottom) ypos -= 2*panel.settings.deltaStep*panel.plotHeight; //Prevent signal from going below bounds
143
+
if(panel.settings.deltaType=="adaptive"){
144
+
if(lastBit==1){//If the last bit is similar to this one, increment counter, otherwise reset
145
+
counter++;
146
+
}else{counter=0;lastBit=1;}
147
+
}
148
+
ypos+=panel.settings.deltaStep*panel.plotHeight*(1+Math.floor(counter/panel.settings.adaptiveNumSteps));//For adaptive modulation, increase the multiplier every numSteps consecutive steps
143
149
}else{
144
-
ypos-=panel.settings.deltaStep*panel.plotHeight;
145
-
//if (ypos <= panel.plotTop) ypos += 2*panel.settings.deltaStep*panel.plotHeight; //Same for the top bound
if(lastBit==0){//If the last bit is similar to this one, increment counter, otherwise reset
251
+
counter++;
252
+
}else{counter=0;lastBit=0;}
253
+
}
254
+
currentAmp+=2*settings.deltaStep*(1+Math.floor(counter/settings.adaptiveNumSteps));//For adaptive modulation, increase the multiplier every numSteps consecutive steps
0 commit comments