# Enable/Disable mavlink message, px4fmu-v2

**URL:** <https://discuss.px4.io/t/enable-disable-mavlink-message-px4fmu-v2/2944>\
**Category:** PX4 Autopilot\
**Created:** [April 6, 2017, 7:53am UTC](https://discuss.px4.io/t/enable-disable-mavlink-message-px4fmu-v2/2944 "2017-04-06T07:53:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexcherpi](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/ecae2f/32.png) [@alexcherpi](https://discuss.px4.io/u/alexcherpi)\
**Post date:** [April 6, 2017, 7:53am UTC](https://discuss.px4.io/t/enable-disable-mavlink-message-px4fmu-v2/2944/1 "2017-04-06T07:53:10Z")

</div>

Where is the place in the code or in the configuration files of PX4/firwmare to enable, disable or change the frequency of selected mavlink messages?  
I am working with the Pixhawk (px4fmu-v2).

---

<div class="post-metadata">

**Author:** ![pziyang](https://discuss.px4.io/user_avatar/discuss.px4.io/pziyang/32/8678_2.png) [@pziyang](https://discuss.px4.io/u/pziyang)\
**Post date:** [April 6, 2017, 5:13pm UTC](https://discuss.px4.io/t/enable-disable-mavlink-message-px4fmu-v2/2944/2 "2017-04-06T17:13:38Z")

</div>

Are you talking about the stream rate in a groundstation or onboard logging?

For the groundstation, (as far as I know), it is located in mavlink\_main.cpp, under configure\_stream()

```
	configure_stream("SYS_STATUS", 1.0f);
	configure_stream("EXTENDED_SYS_STATE", 1.0f);
	configure_stream("HIGHRES_IMU", 1.5f);
	configure_stream("ATTITUDE", 20.0f);
	configure_stream("RC_CHANNELS", 5.0f);
	configure_stream("SERVO_OUTPUT_RAW_0", 1.0f);
	configure_stream("ALTITUDE", 1.0f);
	configure_stream("GPS_RAW_INT", 1.0f);
	configure_stream("ADSB_VEHICLE", 2.0f);
	configure_stream("DISTANCE_SENSOR", 0.5f);
	configure_stream("OPTICAL_FLOW_RAD", 1.0f);
	configure_stream("VISION_POSITION_NED", 1.0f);
	configure_stream("ESTIMATOR_STATUS", 0.5f);
	configure_stream("NAV_CONTROLLER_OUTPUT", 1.5f);
	configure_stream("GLOBAL_POSITION_INT", 5.0f);
	configure_stream("LOCAL_POSITION_NED", 1.0f);
	configure_stream("POSITION_TARGET_GLOBAL_INT", 1.5f);
	configure_stream("ATTITUDE_TARGET", 2.0f);
	configure_stream("HOME_POSITION", 0.5f);
	configure_stream("NAMED_VALUE_FLOAT", 1.0f);
	configure_stream("VFR_HUD", 4.0f);
	configure_stream("WIND_COV", 1.0f);
	break;

```

For the onboard logging itself, it can be set via QGC (params tab) or in init.d  
See also [How to increase sdlog2 logging rate?](http://discuss.px4.io/t/how-to-increase-sdlog2-logging-rate/2637)

---

<div class="post-metadata">

**Author:** ![alexcherpi](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/ecae2f/32.png) [@alexcherpi](https://discuss.px4.io/u/alexcherpi)\
**Post date:** [April 7, 2017, 5:39pm UTC](https://discuss.px4.io/t/enable-disable-mavlink-message-px4fmu-v2/2944/3 "2017-04-07T17:39:34Z")

</div>

Thanks pziyiang 😃
