Skip to content
Snippets Groups Projects
Commit 1083af21 authored by Daniel Agar's avatar Daniel Agar
Browse files

mc_pos_control limit to 50 Hz

parent f3533d31
No related branches found
No related tags found
No related merge requests found
......@@ -582,11 +582,13 @@ MulticopterPositionControl::run()
_vehicle_land_detected_sub = orb_subscribe(ORB_ID(vehicle_land_detected));
_control_mode_sub = orb_subscribe(ORB_ID(vehicle_control_mode));
_params_sub = orb_subscribe(ORB_ID(parameter_update));
_local_pos_sub = orb_subscribe(ORB_ID(vehicle_local_position));
_att_sub = orb_subscribe(ORB_ID(vehicle_attitude));
_home_pos_sub = orb_subscribe(ORB_ID(home_position));
_traj_wp_avoidance_sub = orb_subscribe(ORB_ID(vehicle_trajectory_waypoint));
_local_pos_sub = orb_subscribe(ORB_ID(vehicle_local_position));
orb_set_interval(_local_pos_sub, 20); // 50 Hz updates
// get initial values for all parameters and subscribtions
parameters_update(true);
poll_subscriptions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment