mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 03:33:35 +08:00
Merge branch 'master' into beta_mavlink2
This commit is contained in:
@@ -477,6 +477,9 @@ const unsigned int loop_interval_alarm = 6500; // loop interval in microseconds
|
|||||||
dt = 0.005f;
|
dt = 0.005f;
|
||||||
parameters_update(&ekf_param_handles, &ekf_params);
|
parameters_update(&ekf_param_handles, &ekf_params);
|
||||||
|
|
||||||
|
/* update mag declination rotation matrix */
|
||||||
|
R_decl.from_euler(0.0f, 0.0f, ekf_params.mag_decl);
|
||||||
|
|
||||||
x_aposteriori_k[0] = z_k[0];
|
x_aposteriori_k[0] = z_k[0];
|
||||||
x_aposteriori_k[1] = z_k[1];
|
x_aposteriori_k[1] = z_k[1];
|
||||||
x_aposteriori_k[2] = z_k[2];
|
x_aposteriori_k[2] = z_k[2];
|
||||||
|
|||||||
@@ -350,12 +350,12 @@ private:
|
|||||||
/*
|
/*
|
||||||
* Reset takeoff state
|
* Reset takeoff state
|
||||||
*/
|
*/
|
||||||
int reset_takeoff_state();
|
void reset_takeoff_state();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reset landing state
|
* Reset landing state
|
||||||
*/
|
*/
|
||||||
int reset_landing_state();
|
void reset_landing_state();
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace l1_control
|
namespace l1_control
|
||||||
@@ -1312,14 +1312,14 @@ FixedwingPositionControl::task_main()
|
|||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int FixedwingPositionControl::reset_takeoff_state()
|
void FixedwingPositionControl::reset_takeoff_state()
|
||||||
{
|
{
|
||||||
launch_detected = false;
|
launch_detected = false;
|
||||||
usePreTakeoffThrust = false;
|
usePreTakeoffThrust = false;
|
||||||
launchDetector.reset();
|
launchDetector.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
int FixedwingPositionControl::reset_landing_state()
|
void FixedwingPositionControl::reset_landing_state()
|
||||||
{
|
{
|
||||||
land_noreturn_horizontal = false;
|
land_noreturn_horizontal = false;
|
||||||
land_noreturn_vertical = false;
|
land_noreturn_vertical = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user