mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 17:23:34 +08:00
Merge pull request #3304 from PX4/mc_pos_tilt_comp
use tilt compensation also for position control
This commit is contained in:
@@ -1370,9 +1370,10 @@ MulticopterPositionControl::task_main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
if (_control_mode.flag_control_altitude_enabled) {
|
||||||
/* thrust compensation for altitude only control mode */
|
/* thrust compensation for altitude only control modes */
|
||||||
float att_comp;
|
float att_comp;
|
||||||
|
|
||||||
if (_R(2, 2) > TILT_COS_MAX) {
|
if (_R(2, 2) > TILT_COS_MAX) {
|
||||||
|
|||||||
Reference in New Issue
Block a user