We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa8201 commit 0eff393Copy full SHA for 0eff393
libraries/AP_TECS/AP_TECS.cpp
@@ -1413,12 +1413,13 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm,
1413
// Calculate specific energy quantitiues
1414
_update_energies();
1415
1416
- // Calculate pitch demand
1417
- _update_pitch();
1418
1419
if (option_is_set(Option::HGT_ACCLN_CTRL)) {
1420
_update_throttle_accel(throttle_nudge, pitch_trim_deg);
1421
} else {
+ // Calculate pitch demand
+ _update_pitch();
1422
+
1423
// Calculate throttle demand - use simple pitch to throttle if no
1424
// airspeed sensor.
1425
// Note that caller can demand the use of
0 commit comments