mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 05:40:35 +08:00
PositionControl: replace interfacemapping checks
Removing the skip_controller and interfaceMapping concept and replacing it with a single method checking if the position control update was successful and return the result in the PositionControl.update().
This commit is contained in:
committed by
Kabir Mohammed
parent
e06fff94bb
commit
b75c1308f9
@@ -159,7 +159,6 @@ Vector2f constrainXY(const Vector2f &v0, const Vector2f &v1, const float &max)
|
||||
// notes:
|
||||
// - s (=scaling factor) needs to be positive
|
||||
// - (max - ||v||) always larger than zero, otherwise it never entered this if-statement
|
||||
|
||||
Vector2f u1 = v1.normalized();
|
||||
float m = u1.dot(v0);
|
||||
float c = v0.dot(v0) - max * max;
|
||||
|
||||
Reference in New Issue
Block a user