mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 21:11:35 +08:00
changed freequency, reduced gyro cutoff for noise
This commit is contained in:
@@ -58,7 +58,7 @@ FixedwingPositionINDIControl::FixedwingPositionINDIControl() :
|
|||||||
_loop_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": cycle"))
|
_loop_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": cycle"))
|
||||||
{
|
{
|
||||||
// limit to 100 Hz
|
// limit to 100 Hz
|
||||||
_vehicle_angular_velocity_sub.set_interval_ms(1000/_sample_frequency);
|
_vehicle_angular_velocity_sub.set_interval_ms(1000.f/_sample_frequency);
|
||||||
|
|
||||||
|
|
||||||
/* fetch initial parameter values */
|
/* fetch initial parameter values */
|
||||||
@@ -606,7 +606,7 @@ FixedwingPositionINDIControl::Run()
|
|||||||
wind(1) = _lp_filter_wind[1].apply(wind(1));
|
wind(1) = _lp_filter_wind[1].apply(wind(1));
|
||||||
wind(2) = _lp_filter_wind[2].apply(wind(2));
|
wind(2) = _lp_filter_wind[2].apply(wind(2));
|
||||||
_set_wind_estimate(wind);
|
_set_wind_estimate(wind);
|
||||||
PX4_INFO("wind estimate:\t%.4f\t%.4f\t%.4f", (double)_wind_estimate(0),(double)_wind_estimate(1),(double)_wind_estimate(2));
|
//PX4_INFO("wind estimate:\t%.4f\t%.4f\t%.4f", (double)_wind_estimate(0),(double)_wind_estimate(1),(double)_wind_estimate(2));
|
||||||
|
|
||||||
|
|
||||||
// only run actuators poll, when our module is not publishing:
|
// only run actuators poll, when our module is not publishing:
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ PARAM_DEFINE_FLOAT(IMU_GYRO_NF_BW, 20.0f);
|
|||||||
* @reboot_required true
|
* @reboot_required true
|
||||||
* @group Sensors
|
* @group Sensors
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_FLOAT(IMU_GYRO_CUTOFF, 30.0f);
|
PARAM_DEFINE_FLOAT(IMU_GYRO_CUTOFF, 10.0f);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gyro control data maximum publication rate
|
* Gyro control data maximum publication rate
|
||||||
|
|||||||
Reference in New Issue
Block a user