mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/videomixer: better pot calibration
This commit is contained in:
parent
71cc2db867
commit
ac64701e19
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
static int scale_pot(int raw, int range)
|
static int scale_pot(int raw, int range)
|
||||||
{
|
{
|
||||||
int pot_min = 54000;
|
int pot_min = 64000;
|
||||||
int pot_max = 105400;
|
int pot_max = 103000;
|
||||||
int scaled;
|
int scaled;
|
||||||
|
|
||||||
scaled = range*(raw - pot_min)/(pot_max - pot_min);
|
scaled = range*(raw - pot_min)/(pot_max - pot_min);
|
||||||
|
|
Loading…
Reference in a new issue