# Set home position in flight

**URL:** <https://discuss.px4.io/t/set-home-position-in-flight/49698>\
**Category:** PX4 Autopilot\
**Created:** [November 4, 2026, 1:14pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698 "2026-11-04T13:14:58Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 4, 2026, 1:14pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/1 "2026-11-04T13:14:58Z")

</div>

Hi all,  
I have noticed that the option to ‘Set home position’ in flight does not change anything (wiht qgc: press on a point on the map and then the option to set home here appears).

This is supported by the fact that when initiating RTL procedure, the drone will not go to the new location. This got me wandering about the fact that maybe RTL goes to the Launch location which is usually the TO location (as stated by the name) and not to the Home position.

What is therefore the difference between the two? How can I set a location while in flight that is used as a fallback location by the drone when starting RTL (not a rally point)?

Thanks in advance,  
Nick

---

<div class="post-metadata">

**Author:** ![yi\_yong\_li](https://discuss.px4.io/user_avatar/discuss.px4.io/yi_yong_li/32/22262_2.png) [@yi\_yong\_li](https://discuss.px4.io/u/yi_yong_li)\
**Post date:** [November 5, 2026, 1:09am UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/2 "2026-11-05T01:09:39Z")

</div>

Good question. In PX4, RTL flies to the home position, which is normally set at arming/takeoff. Whether QGC’s ‘Set home here’ actually takes effect in flight depends on your PX4 version, so check the MAVLink console or QGC messages for a rejected/ignored DO\_SET\_HOME command after you try it. For a reliable in-flight fallback, rally (safe) points are usually the better tool: upload them with your mission in QGC’s Rally tab, and with RTL\_TYPE set to use the closest safe destination the vehicle will return to the nearest rally point instead of the launch site. On long-range fixed-wing and VTOL ops we fly at Gauten UAV, we nearly always set a couple of rally points along the route for exactly this reason. Also worth checking RTL\_RETURN\_ALT and, for VTOL, the RTL land approach settings so the vehicle arrives at the rally point in a sensible configuration.

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 5, 2026, 8:20am UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/3 "2026-11-05T08:20:30Z")

</div>

> [@yi\_yong\_li](#):
>
> cking RTL\_RETURN\_ALT and, for VTOL, the RTL land approach settings so the vehicle arrives at the rally point in a sensible configuration.

Hi @yi_yong_li and thanks for the reply. I am flying a quadcopter (not a fixed wing) so the missions might be a shorter in range. I know that setting rally points is a good option, but I would like to avoid going through the mission planner \> upload to vehicle as it is slower than just setting a new home pos.

Do you have any fix (I am using a custom version based on PX4 v1.16) or is the solution just checking the console?

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [November 6, 2026, 3:59am UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/4 "2026-11-06T03:59:37Z")

</div>

Hi Nick,

I checked the PX4 v1.16.0 source code, and there is a specific setting worth checking before modifying your firmware.

In `Commander.cpp`, PX4 handles `MAV_CMD_DO_SET_HOME`, but the command is gated by the `COM_HOME_EN` parameter.

I would suggest the following:

1. Check whether `COM_HOME_EN` is enabled in your custom PX4 build.

2. Use QGC’s “Set home here” option and inspect the `COMMAND_ACK` result for `MAV_CMD_DO_SET_HOME`.

3. Check the subsequent MAVLink `HOME_POSITION` message to confirm whether PX4 actually updated the coordinates.

4. If the command is accepted and the home position changes, but RTL still targets the original location, investigate the RTL destination selection in your custom firmware.

In PX4 v1.16, the manual home-setting function also requires a valid global reference from the local position estimator.

One important detail: setting home manually requires a valid altitude as well as latitude and longitude. A failure in that part of the command can prevent the update.

You should not need to upload a rally-point mission simply to request a new home position.

I would first verify this in SITL, including the RTL destination, before using it as an in-flight fallback.

Could you check the value of `COM_HOME_EN` and let us know whether the command returns ACCEPTED, DENIED, or TEMPORARILY\_REJECTED?

Best regards,  
Yiğitcan Öztürk  
PAMILANGA LIMITED

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 6, 2026, 7:47am UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/5 "2026-11-06T07:47:54Z")

</div>

> [@yigitcan-ozturk](#):
>
> PAMILANGA LIMITED

Hi Yiğitcan,  
Thanks for the reply. I will check the COM\_HOME\_EN param (although I am pretty sure that I have already enabled that) and tun a SITL simulation and check the mavlink message. Will let share the result.

Thanks again.

BR,  
Nick

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 6, 2026, 12:57pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/6 "2026-11-06T12:57:24Z")

</div>

> [@yigitcan-ozturk](#):
>
> AV\_CMD\_DO\_SET\_HOME

I checked the param COM\_HOME\_EN and it was set to 1. I did not run a simulation before so I did not catch it, but as soon as I set a new home pos, the altitude to some -485m (negative!!).

So the new position is accepted in SITL (confirmed with the mavlink inspector and console) but rejected in the real flights.

I see that commander.cpp handles the altitude as param7, but I also see that in qgc when I enter Application Settings \> Maps the Elevetion Provider is set to Copernicus. So I am wandering if this a trustwrthy source or if this has to be changed to smt else.  
It could also explain some other issues that I am having with the altitude sometimes reporting wrong measurements because the barometer (main ekf source) and the gnss derived altitude differ between them.

I will try to research this, let me know if you have any ideas.

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [November 6, 2026, 3:48pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/7 "2026-11-06T15:48:14Z")

</div>

Hi Nick,

Thanks for running the SITL test. The difference between SITL and the real vehicle is an important finding.

I would first separate three possible issues: the altitude reference supplied to MAV\_CMD\_DO\_SET\_HOME, the command acknowledgement, and the actual HOME\_POSITION update.

The approximately -485 m value is worth investigating, but a negative altitude alone does not establish an error. We need to know which altitude reference it represents.

I would not change the QGroundControl Copernicus elevation provider or the EKF height source yet. There is not enough evidence to attribute the problem to either.

Could you check the following?

1. The exact value and altitude reference used for param7.

2. The COMMAND\_ACK result in SITL and on the real vehicle.

3. HOME\_POSITION before and after the command.

4. GLOBAL\_POSITION\_INT and GPS\_RAW\_INT altitude values, if available.

5. Your PX4 firmware version and how you send the command.

It would also be useful to distinguish whether the real vehicle explicitly rejects the command or acknowledges it without updating the home position.

I suggest performing these checks on the ground, with propellers removed, before attempting any further in-flight home-position changes.

Once we have those values, we can narrow down whether this is an altitude-reference mismatch, a command-handling difference, or a position-estimation issue.

Best regards,  
Yiğitcan Öztürk  
PAMILANGA LIMITED

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 9, 2026, 2:14pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/8 "2026-11-09T14:14:13Z")

</div>

Hi Yiğitcan,

thanks for the reply. Since I am also using a custom QGC implementation and I thought that the issue could lie also there, I implemented a SIH setting to use my real FMU with both QGC and also with the custom version of it. I did the tests in the following scenarios:

1. SIH + QGC
2. SIH + Custom QGC
3. SITL + QGC
4. Real drone + Custom QGC

The preliminary results are attached

 ![Screenshot From 2026-11-09 15-08-21](https://discuss.px4.io/uploads/default/original/3X/a/f/afeca99efd386002fa8032a913dd10b8e27c4f6c.png)  
(edited by ChatGPT for easy read)

And some conclusion I could draw:

1. SIH + QGC and SIH + Custom QGC: Both successfully update the home position. The requested param7 value (479 m) matches the stored home altitude.

2. SITL + QGC: The home-position command is accepted, but the resulting home altitude is approximately 483 m above the simulated vehicle’s estimated altitude. PX4 stores exactly the 483 m received in param7.

3. Real Drone + Custom QGC: The manual home-position update remains unverified. The captured command and acknowledgement relate to commands other than _MAV\_CMD\_DO\_SET\_HOME_ (179). The real vehicle also shows a substantial difference between its GNSS and estimated altitudes.

Note that on my real drone setup the _EKF2\_GPS\_CTRL_ parameter is set to 5 (I have disabled the height aiding as it was creating instability and only left the barometer to be the source of it). It is enabled in SITL/SIH scenarios.

I hope this is useful,

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 9, 2026, 3:21pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/9 "2026-11-09T15:21:44Z")

</div>

ERRATA CORRIGE: In my SITL setup, the default PX$ world is set near Zurich, but the elevation of the origin is set to 0m (when in reality it is ~490m). Changing this in the .sdf file of the default world seems to solve the issue.

In the SIH simulation, the vehicle is still set to sawn in this default world, but since my actual position is close to sea level and the barometer present on the FMU is detecting the correct atmospheric pressure, the change in altitude is relatively small.

It does not explain all the discrepancies, but it does shine a little light on the matter. This is leading me to thingk that the hardware used in my real drone setup might be the issue.

BR,

~Nick

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [November 9, 2026, 4:32pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/10 "2026-11-09T16:32:35Z")

</div>

Hi Nick,

Thanks for the update and for identifying the SITL world-origin elevation mismatch.

That explains a significant part of the approximately 483 m altitude discrepancy and is an important distinction: the observed behavior appears to be related to the simulation environment configuration rather than a confirmed PX4 home-position defect.

For the real vehicle, I would avoid concluding that the hardware is responsible just yet.

Given your `EKF2_GPS_CTRL=5` configuration, it would be useful to compare the GNSS altitude, barometric height estimate, and published `HOME_POSITION` altitude, ensuring that the altitude references are consistent.

I would also recommend capturing the actual `MAV_CMD_DO_SET_HOME` (179) request and corresponding `COMMAND_ACK` before drawing conclusions about the manual home update.

If you can share those message captures and the PX4 firmware version, we should be able to narrow the remaining issue down further.

Thanks again for documenting the investigation so carefully.

Best regards,  
Yiğitcan  
PAMILANGA Ltd.

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 11, 2026, 8:19am UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/11 "2026-11-11T08:19:32Z")

</div>

Hi Yiğitcan,

Thanks again for the answer. The values you requested:

- GPS _sensor\_gps.altitude\_msl\_m_ = 36.254m

- GPS _sensor\_gps.altitude\_ellipsoid\_m_ = 77.548m

- _vehicle\_air\_data.baro\_alt\_meter_ = 63.188m

- _home\_position.alt_ = 63.358m

- Since _ekf2\_gps\_ctrl_ = 5, I have that both _vehicle\_global\_position.alt_ and _vehicle\_local\_position.ref\_alt_ = ~63m

- From the log I recorded I also see that _EKF global altitude_ = 63.277m (agrees with baro since that is the main source for altitude and GNSS does not aid)

So it looks like the baro and EKF agree, but the GNSS derived altitude is quite different and I wonder if that is an issue with the reference surface that it takes into consideration.  
Regarding the altitude inconsistencies that I sometimes experience in the telemetry readings, it seems like PX4 has an inconsistency as it stores different values for the EKF home pos. alt. and for that derived from GNSS, thus causing a discrepancy.  
It seems like some stuff might be solved in PX4 v1.18 so maybe I can have answers when that is released. Do you agree?

PRs I am referring to:

> <https://github.com/PX4/PX4-Autopilot/pull/28415>
>
> \## Summary
> 
> The low pass filter that smooths barometric altitude for the in-air …home position correction is fed the raw uORB timestamp difference, which is in microseconds, while \`AlphaFilter::setParameters()\` documents both of its arguments as seconds and the filter is constructed with a 5 second time constant.
> 
> \`src/modules/commander/HomePosition.cpp\`:
> 
> \`\`\`c
> const float dt = baro\_data.timestamp - \_last\_baro\_timestamp; // microseconds
> \_lpf\_baro.update(baro\_alt, dt);
> \`\`\`
> 
> \## Effect
> 
> Since \`alpha = dt / (tau + dt)\`:
> 
> | baro rate | dt | alpha (before) | alpha (intended) |
> |---|---|---|---|
> | 50 Hz | 0.0200 s | 0.999750 | 0.003984 |
> | 100 Hz | 0.0100 s | 0.999500 | 0.001996 |
> | 200 Hz | 0.0050 s | 0.999001 | 0.000999 |
> 
> At an alpha of 0.9997 the filter passes essentially every raw sample through. The effective time constant is 5 us instead of 5 s, so \`\_lpf\_baro.getState()\` has been effectively unfiltered barometric altitude.
> 
> That state feeds the in-air home altitude correction: it is offset by \`\_baro\_gps\_static\_offset\` and compared against GNSS altitude, and \`home.alt\` is shifted when the two differ by more than \`kAltitudeDifferenceThreshold\`. A GNSS velocity integral gates that comparison for consistency.
> 
> \## Why this looks like an oversight
> 
> The same conversion is already done correctly a few lines below in this file for the GNSS velocity integral:
> 
> \`\`\`c
> \_gps\_vel\_integral += 1e-6f \* (vehicle\_gps\_position.timestamp - \_last\_gps\_timestamp) \* (-vehicle\_gps\_position.vel\_d\_m\_s);
> \`\`\`
> 
> and in EKF2 for the geoid height filter, which uses the identical \`setParameters(dt, tau)\` call.
> 
> \## Note on behaviour change
> 
> This does change behaviour: the filter now actually applies its 5 second time constant, so \`\_lpf\_baro.getState()\` lags during a climb by roughly the time constant times the climb rate. \`\_baro\_gps\_static\_offset\` is captured once when the correction window opens, so that lag does not cancel and it biases \`baro\_alt\_corrected\` while climbing.
> 
> I would appreciate a look from whoever knows this feature: the 5 second constant and the 1 m threshold were both tuned while the filter was effectively a pass-through, so it is worth confirming they are still the values you want now that it filters.
> 
> \## Testing
> 
> \`make px4\_sitl\` builds and \`make check\_format\` passes. The unit analysis above is the substantive evidence and can be checked against the \`AlphaFilter\` docstring without running anything. I do not have flight logs for this; happy to add SITL traces if that would help the review.

> <https://github.com/PX4/PX4-Autopilot/pull/28259>
>
> \### Solved Problem
> The in-air home altitude correction (#25003) assumes the est…imated altitude follows raw GNSS altitude. When GNSS is not the EKF height reference (e.g. \`EKF2\_HGT\_REF = 0\`, baro), the EKF absorbs GNSS altitude drift in its GNSS height bias estimator and the estimate stays put, so the correction moves home by the full drift and corrupts altitude-above-home.
> 
> \### Solution
> Only apply the correction when GNSS is the EKF height reference. \`EKF2\_HGT\_REF\` is reboot-required, so it is read once at construction; if the parameter does not exist (builds without EKF2) the correction stays enabled as before.
> 
> \### Changelog Entry
> 
> For release notes:
> \`\`\`
> Bugfix: in-air home position altitude correction is now only applied when GNSS is the EKF height reference (EKF2\_HGT\_REF = GPS)
> \`\`\`

> <https://github.com/PX4/PX4-Autopilot/pull/27734>
>
> \## Summary
> 
> Part of #27730. Captures the home altitude on the ground before the …motors spin, including when arming directly into a mission, so relative-altitude mission legs are referenced to an accurate datum.
> 
> \## Problem
> 
> The fresh home capture at arm is gated \`!\_mission\_in\_progress\`, so arming straight into a mission skips it (as does the takeoff hook). The only home-altitude update that then runs is the post-takeoff correction, which can shift the relative mission legs while flying. The capture also currently runs after \`ARMING\_STATE\_ARMED\`, i.e. after the ESCs are enabled, so prop wash can perturb the baro before home is taken.
> 
> \## Solution
> 
> Move the capture to before \`ARMING\_STATE\_ARMED\` (after the preflight checks pass) so it runs before the motors spin. Gate it on \`landed && (!\_mission\_in\_progress || seq\_current == 0)\`: capture for a genuine mission start, but not for a mid-mission re-arm (a mission that lands, disarms and re-arms to continue keeps \`seq\_current \> 0\`) and not for an in-air re-arm.

* * *

Regarding the **reset home position in flight** (the main issue we are discussing here): when I try to set new home pos (not in flight but on the ground) and get from the log that:

- MAV\_CMD\_DO\_SET\_HOME not found

- ACK for cmd 179 not found

- _Param7_ for cmd 179 not available

- Home\_position.update\_count = 14, not updated

- Home\_position.manual\_home = false, unchanged

- Home pos [lat,lonalt] is unchanged even after the request of home pos update

As you said, blaming HW is probably not the best option yet. But these results with the fact the SITL/SIH simulations do sseem to send the ACK command, hint that the real RC running the custom QGC does not send the MavLink cmd for changing position.

As a next step I will try to log these messages and see if the request to change home pos is even sent to the drone. Let me know if you think that this is a good way forward or if you have any other suggestions.

BR,

~Nick

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [November 11, 2026, 7:51pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/12 "2026-11-11T19:51:42Z")

</div>

Hi Nick,

Thanks for providing the actual altitude values and the additional command observations. These help separate two issues that may otherwise appear related.

**1. Altitude references**

Your barometric altitude (63.188 m), home altitude (63.358 m), and EKF altitude (63.277 m) are closely aligned, while GNSS reports 36.254 m MSL and 77.548 m ellipsoidal altitude.

The GNSS ellipsoid-to-MSL difference is approximately 41.294 m, which may reflect the geoid separation. However, that does not by itself explain the approximately 26.9 m difference between GNSS MSL and barometric altitude.

Could you confirm the actual `EKF2_HGT_REF` value? `EKF2_GPS_CTRL=5` alone does not establish the height reference.

I checked the three PRs you linked: #28415, #28259 and #27734 are now merged into PX4 main.

Of these, #28259 is particularly relevant to baro-referenced height estimation, since it prevents the in-air home altitude correction from running when GNSS is not the EKF height reference.

These fixes may improve the home altitude behavior, but I would not assume they resolve the custom QGC command issue or are included in a particular release without checking the release branch.

**2. MAV\_CMD\_DO\_SET\_HOME**

I agree with your proposed next step: capture the MAVLink traffic at the custom QGC output and, ideally, at the vehicle-facing link.

Specifically, check whether a `COMMAND_LONG` or `COMMAND_INT` carrying command 179 is transmitted, its target system/component, `param1`, and the requested coordinates/altitude.

Then correlate that with the PX4-side `vehicle_command`, `vehicle_command_ack`, and `home_position` messages, provided those topics are actually being logged.

If command 179 never leaves QGC, the investigation should focus on the custom GCS implementation. If it is transmitted but no acknowledgment returns, the MAVLink routing and PX4 reception path become the next suspects. If an ACK is received, its result code should guide the next step.

I would perform this initial diagnostic on the ground, without changing the flight configuration, before attempting any in-flight test.

The key is to distinguish an altitude-reference inconsistency from a command-delivery or command-acceptance failure.

Best regards,  
Yiğitcan Öztürk  
PAMILANGA Ltd.

---

<div class="post-metadata">

**Author:** ![nickfil](https://discuss.px4.io/user_avatar/discuss.px4.io/nickfil/32/21538_2.png) [@nickfil](https://discuss.px4.io/u/nickfil)\
**Post date:** [November 13, 2026, 1:03pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/13 "2026-11-13T13:03:11Z")

</div>

Hi Yiğitcan,

Thanks for the reply. To answer your inquiry:

**1. Altitude reference**

I confirm that EKF2\_HGT\_REF=0, which is barometric pressure.

Regarding PR#28259: I see that it is relevant, but I am not sure how it can play a role for me since EKF2 does not take the GNSS altitude measurements into estimation.

I disabled it before because I was experiencing some weird oscillation in the vertical direction (altitude instability that I did also try to solve here: [Discord](https://discord.com/channels/1022170275984457759/1438209842148806759/threads/1509434851374403625)).

The second reason is that I would like to implement a robust solution for and estimating altitude in GNSS denied environments (or compromised - i.e. jamming).

**2. MAV\_CMD\_DO\_SET\_HOME**

I am still trying to implement a debug frameset on both sides so that it can help to understand what happens. Thanks for all the input, I will try to work more on it in the weekend and then let you know the results.

BR,

~Nick

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [November 14, 2026, 5:28pm UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/14 "2026-11-14T17:28:14Z")

</div>

Hi Nick,

Thanks for the update and for confirming `EKF2_HGT_REF = 0`.

That clarification is particularly relevant to PR #28259. The issue addressed by that PR is not that EKF2 necessarily fuses GNSS altitude as its height reference. Rather, the separate in-air home-altitude correction could use GNSS-related changes even when EKF2 is following the barometric height reference.

PR #28259 specifically gates that correction on GNSS being the selected EKF height reference. Therefore, it may be relevant to your configuration, although it does not by itself explain the full difference between GNSS MSL altitude and the barometric/EKF values.

The three referenced PRs (#28259, #28415 and #27734) have been merged into PX4 main. Whether they are included in the particular firmware build you intend to test still needs to be confirmed.

Regarding `MAV_CMD_DO_SET_HOME`, I agree with your proposed next step. Capturing the command path on both sides is the most useful way to isolate the problem.

For the ground test, I would correlate:

- The outgoing MAVLink `COMMAND_LONG` or `COMMAND_INT` carrying command 179, including target system/component and parameters.

- The corresponding incoming command on the flight-controller side.

- Any `COMMAND_ACK` / `vehicle_command_ack`, including its result.

- The resulting `home_position.update_count`, `manual_home`, and coordinates.

If the command never leaves the custom QGC, that points to the application side. If it leaves QGC but does not reach PX4, the transport/routing path becomes the focus. If PX4 receives it, the command result should help distinguish rejection from successful handling.

I would keep the altitude-reference discrepancy and the missing Set Home command as two separate investigations until the logs establish a connection.

Your plan to capture both ends is a good way forward. No additional flight test is needed for this initial command-path check.

Best regards,  
Yiğitcan Öztürk  
PAMILANGA LIMITED

---

<div class="post-metadata">

**Author:** ![noahclark](https://discuss.px4.io/letter_avatar_proxy/v4/letter/n/b9bd4f/32.png) [@noahclark](https://discuss.px4.io/u/noahclark)\
**Post date:** [November 17, 2026, 12:36am UTC](https://discuss.px4.io/t/set-home-position-in-flight/49698/15 "2026-11-17T00:36:10Z")

</div>

One concrete item for the MAVLink capture: inspect param1 of MAV\_CMD\_DO\_SET\_HOME (179). Per MAVLink, param1=0 means use the supplied latitude/longitude/altitude, while param1=1 means use the vehicle’s current position; if QGC is sending 1 after a map click, the clicked point would be ignored. Also log HOME\_POSITION and home\_position.update\_count before and after, plus the ACK result. That should distinguish a QGC parameterization issue from PX4 rejecting or normalizing the in-air home update. For the original question, PX4 RTL targets home\_position, not a separate launch record.
