How to manual contol the plane

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

They plane just locks heading and altitude

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

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.

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?