Fixed the initial ADC read value problem - the values are to shaking around.
This commit is contained in:
parent
753d91457a
commit
8bc17c45c7
2 changed files with 7 additions and 1 deletions
|
@ -200,6 +200,13 @@ void cc_startMeasurement()
|
|||
{
|
||||
si5351.drive_strength(SI5351_CLK0, drive_str); // 2 4 6 8ma
|
||||
|
||||
uint8_t t = 0;
|
||||
for (t = 0; t < 200; t++)
|
||||
{
|
||||
uint16_t tmp = analogRead(A0);
|
||||
tmp = analogRead(A1);
|
||||
}
|
||||
|
||||
uint32_t freq = 0;
|
||||
for (freq = start_freq; freq < end_freq; freq += step_freq)
|
||||
{
|
||||
|
|
|
@ -520,7 +520,6 @@ if __name__ == "__main__":
|
|||
plt.plot(meas_freq, meas_ratio)
|
||||
plt.plot(meas_freq, meas_r)
|
||||
plt.plot(meas_freq, meas_p)
|
||||
print meas_r
|
||||
|
||||
print "Please close the mathplot window to exit..."
|
||||
plt.show()
|
||||
|
|
Loading…
Reference in a new issue