# How to manual contol the plane

**URL:** <https://discuss.px4.io/t/how-to-manual-contol-the-plane/2859>\
**Category:** Uncategorized\
**Created:** [March 24, 2017, 12:14pm UTC](https://discuss.px4.io/t/how-to-manual-contol-the-plane/2859 "2017-03-24T12:14:08Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![paan2097](https://discuss.px4.io/user_avatar/discuss.px4.io/paan2097/32/4697_2.png) [@paan2097](https://discuss.px4.io/u/paan2097)\
**Post date:** [June 28, 2017, 3:33pm UTC](https://discuss.px4.io/t/how-to-manual-contol-the-plane/2859/21 "2017-06-28T15:33:40Z")

</div>

Yes I saw that the set\_position\_target\_local\_ned populated the x,y,and z variables for the position\_setpoint\_triplet.current uORB message. What I don’t see in FixedWingPostionControl are any conditions to control position when the offboard control mode is True or any use of pos\_sp\_triplet.x/y/z…it seems to only use pos\_sp.lat or pos\_sp.lon here: [https://github.com/PX4/Firmware/blob/master/src/modules/fw\_pos\_control\_l1/FixedwingPositionControl.cpp#L1645](https://github.com/PX4/Firmware/blob/master/src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp#L1645)

They plane just locks heading and altitude

---

<div class="post-metadata">

**Author:** ![dagar](https://discuss.px4.io/user_avatar/discuss.px4.io/dagar/32/22_2.png) [@dagar](https://discuss.px4.io/u/dagar)\
**Post date:** [June 28, 2017, 4:14pm UTC](https://discuss.px4.io/t/how-to-manual-contol-the-plane/2859/22 "2017-06-28T16:14:29Z")

</div>

FW currently only uses lat/lon/alt, but in the near future it will be converted to local position. [https://github.com/PX4/Firmware/pull/7432](https://github.com/PX4/Firmware/pull/7432)

If you’re interested please comment in the github PR and we may be able to make the jump sooner with additional help reviewing and testing.

---

<div class="post-metadata">

**Author:** ![juan\_leiro](https://discuss.px4.io/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@juan\_leiro](https://discuss.px4.io/u/juan_leiro)\
**Post date:** [June 19, 2018, 10:13am UTC](https://discuss.px4.io/t/how-to-manual-contol-the-plane/2859/23 "2018-06-19T10:13:23Z")

</div>

Hi, Im trying to receive on a arduino a command from pixhawk, de cmd\_id =21. I´m doing the next but it doesn´t work;

mavlink\_message\_t msg;  
mavlink\_command\_long\_t cmd;  
uint8\_t buf[MAVLINK\_MAX\_PACKET\_LEN];  
mavlink\_status\_t status;  
while (Serial.available() \> 0) {

```
uint8_t c = Serial.read();

if (mavlink_parse_char(MAVLINK_COMM_0, c, &msg, &status)) {

  mavlink_msg_command_long_decode(&msg, &cmd);

  if(cmd.command==21){
    digitalWrite(ledPIN , HIGH);
  }

  switch (msg.msgid) {
    case MAVLINK_MSG_ID_HEARTBEAT: // #0: Heartbeat
      { }
      break;
    default:
      break;
  }

}

```

}

Can you help me?

[Previous page](https://discuss.px4.io/t/how-to-manual-contol-the-plane/2859.md?page=1)
