Commit 07a93e49 authored by mattdr's avatar mattdr
Browse files

changes for new pot

parent b802eb44
......@@ -81,9 +81,10 @@ int get_pot_0_scaled(int scaleFactor, float period_over_255)
float potval = raw_potval;
//triggere pot has a raw value of 260-1023 ie 763 is the range (starting at 260)
potval = potval - 260; // This makes the trigger pot go from 0-763
//potval = potval - (260); // This makes the trigger pot go from 0-763 (after adjusting pot it needs 102 more for some reason)
// After altering the trigger potentiometer the raw value now goes from 574-922
potval = potval - 574; // at this point the trigger pot now goes from 0-348
potval = ROC_limiter(potval);
......@@ -99,7 +100,10 @@ int get_pot_0_scaled(int scaleFactor, float period_over_255)
potval = potval/763; //previously 1024 for slide pot now 763 for trigger pot
//potval = potval/763; //previously 1024 for slide pot now 763 for trigger pot (This was from the trigger pot before it changed)
potval = potval/348; // This is after the trigger pot changed for some reason
potval = potval * scaleFactor;
potval -= 3.0; // this just disables the first three pot ticks
......
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