mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 00:13:33 +08:00
PositionControl: check if constraints are below global maximum
This commit is contained in:
committed by
Lorenz Meier
parent
1cde38f82f
commit
673945f28b
@@ -55,8 +55,6 @@ namespace Controller
|
||||
struct Constraints {
|
||||
float tilt_max;
|
||||
float vel_max_z_up;
|
||||
float vel_max_z_down;
|
||||
float vel_max_xy;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -136,6 +134,7 @@ private:
|
||||
float _ThrHover{0.5f};
|
||||
float _ThrMinPosition{0.0f}; // minimum throttle for any position controlled mode
|
||||
float _ThrMinStab{0.0f}; // minimum throttle for stabilized
|
||||
float _tilt_max{1.5f}; /**< maximum tilt */
|
||||
bool _skipController{false};
|
||||
|
||||
/* Helper methods */
|
||||
|
||||
Reference in New Issue
Block a user