/branches/dongfang_FC_rewrite/analog.c |
---|
644,5 → 644,13 |
} |
int16_t analog_getDHeight(void) { |
/* |
int16_t result = 0; |
for (int i=0; i<staticParams.airpressureDWindowLength; i++) { |
result -= dAirPressureWindow[i]; // minus pressure is plus height. |
} |
// dHeight = -dPressure, so here it is the old pressure minus the current, not opposite. |
return result; |
*/ |
return dHeight; |
} |