diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:37:29 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:37:29 +0900 |
commit | 635528d0cb0590f5578cb6ab1d0e0b97b51f0c15 (patch) | |
tree | d0d051bf23134d0a8a072e591c1862e0752c6e66 /flash.c | |
parent | efca4799e5dbb52fed6963b88d8c73e59b42e123 (diff) |
First attempt at handling pwl_distort automatically when adding ampl cal points
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -641,13 +641,20 @@ static void initFlashValues(FlashStruct *mem) } } - for (j=0; j<10; j++) - for (k=0; k<5; k++) - for (m=0; m<2; m++) { + for (k=0; k<5; k++) { + for (m=0; m<2; m++) { + j=0; + mem->ampl_dacval[i][k][m][j]=0; + mem->ampl_pwl[i][k][m][j]=0.0; + mem->distort_dacval[i][k][m][j]=dac_max; /* EA shunt is max at zero ampl, + zero at max ampl */ + for (j=1; j<10; j++) { mem->ampl_dacval[i][k][m][j]=0; mem->ampl_pwl[i][k][m][j]=0.0; mem->distort_dacval[i][k][m][j]=0; } + } + } mem->ampl_dacval[i][0][0][1]=dac_max; mem->ampl_pwl[i][0][0][1]=100.0; |