Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2105 → Rev 2106

/branches/dongfang_FC_fixedwing/flight.c
68,9 → 68,9
return pid;
}
 
uint16_t result = (pid * 10) / airspeed;
uint16_t result = (pid * 10) / airspeedVelocity;
 
if (result > 240 || airspeed == 0) {
if (result > 240 || airspeedVelocity == 0) {
result = 240;
}