mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-09 16:48:55 +08:00
increased controller and logging frequency
This commit is contained in:
@@ -312,7 +312,7 @@ private:
|
||||
Vector<Vector3f, 2> _a_lpf_list;
|
||||
Vector<Vector3f, 2> _l_lpf_list;
|
||||
// controller frequency
|
||||
const float _sample_frequency = 100.f;
|
||||
const float _sample_frequency = 200.f;
|
||||
// Low-Pass filters stage 1
|
||||
const float _cutoff_frequency_1 = 5.f;
|
||||
math::LowPassFilter2p _lp_filter_accel[3] {{_sample_frequency, _cutoff_frequency_1}, {_sample_frequency, _cutoff_frequency_1}, {_sample_frequency, _cutoff_frequency_1}}; // linear acceleration
|
||||
|
||||
@@ -117,8 +117,8 @@ void LoggedTopics::add_default_topics()
|
||||
add_topic("wind", 1000);
|
||||
|
||||
// Control allocation topics
|
||||
add_topic("vehicle_angular_acceleration_setpoint", 20);
|
||||
add_topic("vehicle_angular_acceleration", 20);
|
||||
add_topic("vehicle_angular_acceleration_setpoint", 10);
|
||||
add_topic("vehicle_angular_acceleration", 10);
|
||||
add_topic("vehicle_thrust_setpoint", 20);
|
||||
add_topic("vehicle_torque_setpoint", 20);
|
||||
add_topic("vehicle_actuator_setpoint", 20);
|
||||
|
||||
Reference in New Issue
Block a user