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