adc reference bug fixed
This commit is contained in:
parent
2c36fe05f8
commit
708b35c295
7 changed files with 9 additions and 18 deletions
|
@ -1,13 +0,0 @@
|
|||
set margin 10,10
|
||||
unset key
|
||||
set grid
|
||||
set title ''
|
||||
set xlabel 'U_{OUT} [V]'
|
||||
set ylabel 'U_{IN} [V]'
|
||||
set xrange [0:5]
|
||||
set yrange [0:5]
|
||||
set label at 5,5 ' [V] = 0' left
|
||||
unset output
|
||||
set terminal qt
|
||||
unset output
|
||||
plot "/tmp/tempfile0" using ($1*0.004888):($2*0.004888) binary format="%int16%int16" endian=big title ' [V] = 0' w l
|
|
@ -34,7 +34,10 @@ int main()
|
|||
|
||||
for(uint16_t x = 0; x < sample_count * delta; x += delta)
|
||||
{
|
||||
pf.addDot(Dot(x, ba[x], curve));
|
||||
drv.analogWrite0(x);
|
||||
uint16_t y = drv.analogRead(0);
|
||||
std::cout << x << " - " << y << std::endl;
|
||||
pf.addDot(Dot(x, y, curve));
|
||||
}
|
||||
|
||||
// speichern und plotty starten
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue