mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fixed compile errors for multicopter
This commit is contained in:
parent
67fcdae30a
commit
c4e967eb97
@ -50,7 +50,7 @@
|
||||
|
||||
ECL_MCAttControlVector::ECL_MCAttControlVector() :
|
||||
_integral_error(0.0f, 0.0f),
|
||||
_integral_max(1000.0f),
|
||||
_integral_max(1000.0f, 1000.0f),
|
||||
_integral_lock(false)
|
||||
{
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
class ECL_MCAttControlVector {
|
||||
|
||||
public:
|
||||
ECL_MCAttControlVector(float integral_max);
|
||||
ECL_MCAttControlVector();
|
||||
void control(float dt, const math::Dcm &R_nb, float yaw, const math::Vector &F_des,
|
||||
float Kp, float Kd, float Ki, const math::Vector &angular_rates,
|
||||
math::Vector &rates_des, float &thrust);
|
||||
@ -65,12 +65,12 @@ public:
|
||||
_integral_error(1) = 0.0f;
|
||||
}
|
||||
|
||||
void lock_integral(bool lock) {
|
||||
void lock_integrator(bool lock) {
|
||||
_integral_lock = lock;
|
||||
}
|
||||
|
||||
protected:
|
||||
math::Vector2 _integral_error;
|
||||
math::Vector2 _integral_max;
|
||||
math::Vector2f _integral_error;
|
||||
math::Vector2f _integral_max;
|
||||
bool _integral_lock;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user