# How to change flight mode in MAVSDK C++

**URL:** <https://discuss.px4.io/t/how-to-change-flight-mode-in-mavsdk-c/15521>\
**Category:** MAVSDK\
**Created:** [March 3, 2020, 5:58pm UTC](https://discuss.px4.io/t/how-to-change-flight-mode-in-mavsdk-c/15521 "2020-03-03T17:58:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avilahuerta](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@avilahuerta](https://discuss.px4.io/u/avilahuerta)\
**Post date:** [March 3, 2020, 5:58pm UTC](https://discuss.px4.io/t/how-to-change-flight-mode-in-mavsdk-c/15521/1 "2020-03-03T17:58:42Z")

</div>

Hello,

Does the function set\_flight\_mode exist (I have seen that there was a pull request some time ago)?. If not, is there a way to command a change of flight mode (for instance go to HOLD mode) after landing?

Thanks
