Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2057 → Rev 2058

/branches/dongfang_FC_rewrite/heightControl.c
77,7 → 77,7
}
 
// height, in meters (so the division factor is: 100)
// debugOut.analog[31] = (117100 - filteredAirPressure) / 100;
debugOut.analog[24] = (117100 - filteredAirPressure) / 100;
// Calculated 0 alt number: 108205
// Experimental 0 alt number: 117100
}
91,8 → 91,8
int32_t heightError = rampedTargetHeight - height;
int16_t dHeight = analog_getDHeight();
debugOut.analog[14] = height/100L;
debugOut.analog[15] = dHeight;
debugOut.analog[22] = height/10L;
debugOut.analog[23] = dHeight;
 
if (heightError > 0) {
debugOut.digital[0] |= DEBUG_HEIGHT_DIFF;