/branches/dongfang_FC_rewrite/heightControl.c |
---|
90,6 → 90,8 |
// height, in meters (so the division factor is: 100) |
// debugOut.analog[30] = filteredAirPressure / 10; |
debugOut.analog[30] = (125200 - filteredAirPressure) / 100; |
// Calculated 0 alt number: 108205 |
// Experimental 0 alt number: 125200 |
} |
// takes 180-200 usec (with integral term). That is too heavy!!! |