Merge branch 'master' of ssh://acereca.ddns.net:11444/acereca/BaTh
This commit is contained in:
commit
2625380e5e
|
@ -5,7 +5,7 @@
|
|||
| Date | |
|
||||
| --- | --- |
|
||||
| 7.6. | Start |
|
||||
| 14.6. | **Content** |
|
||||
| 14.6. | **Table of Contents** |
|
||||
| 9.8. | last possibility for "first draft"|
|
||||
| 30.8. | Deadline |
|
||||
| 6.9. | Kolloquium |
|
||||
|
@ -26,7 +26,7 @@
|
|||
- [x] raw memory mapping
|
||||
- [x] why is `mon48v = 0x11`?
|
||||
- missing `__attribute__((packed))` declarations
|
||||
- [x] why are `digipoti` and `anapoti` only readable from `0x02` and 0x04` not partial?
|
||||
- [x] why are `digipoti` and `anapoti` only readable from `0x02` and `0x04` not partial?
|
||||
- same as above
|
||||
- [ ] instability on mass spi communication
|
||||
- timebased / overflow ?
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import numpy as np
|
||||
import time
|
||||
import matplotlib
|
||||
#matplotlib.use('GTKAgg')
|
||||
from matplotlib import pyplot as plt
|
||||
plt.style.use('bmh')
|
||||
plt.ion() ## Note this correction
|
||||
fig=plt.figure()
|
||||
|
||||
i=0
|
||||
x=list()
|
||||
yd=list()
|
||||
y=list()
|
||||
|
||||
while i <1000:
|
||||
temp_y=np.loadtxt("/sys/class/thermal/thermal_zone0/temp")/1000
|
||||
x.append(i);
|
||||
y.append(temp_y);
|
||||
try:
|
||||
t = y[-1]
|
||||
for deg in range(4):
|
||||
t += yd[deg-1]
|
||||
t /=2
|
||||
yd.append(t)
|
||||
except:
|
||||
yd.append(temp_y)
|
||||
plt.clf()
|
||||
plt.plot(x,yd);
|
||||
i+=1;
|
||||
plt.xlim([i-500, i])
|
||||
plt.show()
|
||||
plt.pause(.05) #Note this correction
|
Loading…
Reference in New Issue