1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

OP-1848 build fixes after merge with ratetrainer

This commit is contained in:
abeck70 2015-05-05 21:52:04 +10:00
parent 43d193cceb
commit dd1c6c7600

View File

@ -300,10 +300,9 @@ static void stabilizationOuterloopTask()
break;
}
}
}
RateDesiredSet(&rateDesired);
{
RateDesiredSet(&rateDesired);
{
FlightStatusArmedOptions armed;
FlightStatusArmedGet(&armed);
float throttleDesired;
@ -315,11 +314,11 @@ RateDesiredSet(&rateDesired);
previous_mode[t] = 255;
}
}
}
}
// update cruisecontrol based on attitude
cruisecontrol_compute_factor(&attitudeState, rateDesired.Thrust);
stabSettings.monitor.rateupdates = 0;
cruisecontrol_compute_factor(&attitudeState, rateDesired.Thrust);
stabSettings.monitor.rateupdates = 0;
}