This commit is contained in:
Wolfgang Hottgenroth
2014-11-15 21:36:15 +01:00
parent d3b2af0dc5
commit 96fec4e827
5 changed files with 87 additions and 4 deletions

View File

@ -75,6 +75,9 @@ void ADS1210::exec() {
//Serial << "DOR1x32: " << _HEX(res.out) << endl;
value = res.out;
u = ((float)(value / V_MAX)) * U_REF;
r = (((float)(V_MAX / value)) - 1.0) * R_REF;
if (value == 0) {
// fatal(2);