PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

rc.interface: also save empty ESC mask (none)

Open MaEtUgR opened this issue 3 years ago • 2 comments

Describe problem solved by this pull request

Credits to @eyeam3 for pointing out to me that these ifs do not help because the ESC mask should always be saved. If the environmental variable is any string in this case "none", then the integer parameter gets set to 0 which is exactly what we want. image Admittedly I did not find any real case in which the variables are none it could in principle still happen and in that case the mask is wrongly set after switching airframe/output configuration.

Describe your solution

I removed the ifs again that were in my understanding experimentally added in https://github.com/PX4/PX4-Autopilot/commit/7c0165ea0c4f783c1d49a9446d5559248c0cc171 from https://github.com/PX4/PX4-Autopilot/pull/18769 to work against some CI issues.

Test data / coverage

See screenshot of what the command does with none.

Additional context

Related to https://github.com/PX4/PX4-Autopilot/pull/17833

MaEtUgR avatar Jun 25 '22 06:06 MaEtUgR

@julianoes I'm not sure anymore. Some SITL tests are failing on this pr even though I think they shouldn't. Does the command and hence the startup script fail in SITL? 🤔 I have to look into the details before we merge.

MaEtUgR avatar Jul 04 '22 08:07 MaEtUgR

Maybe you were onto something with your original fix. But why would it only happen in the VTOL SITL CI tests and run real vehicles and quad SITL fine 🤔 🔍 image

MaEtUgR avatar Jul 04 '22 09:07 MaEtUgR

Like @dagar corrected this is only relevant for the 1.13 release and not on main anymore. I ported the change to the release branch and am adding it for the sake of completeness.

MaEtUgR avatar Oct 26 '22 11:10 MaEtUgR

Like @dagar corrected this is only relevant for the 1.13 release and not on main anymore. I ported the change to the release branch and am adding it for the sake of completeness.

It seems that release/1.13 still doesn't include this change. Should we merge this PR then?

junwoo091400 avatar Mar 24 '23 06:03 junwoo091400