-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SITL OSX] Fix some of the warnings and add macosx SITL build to workflows #9063
Conversation
Mostly promotion from float to double, since OSX is a 64bit build.
Hopefully brew can be used to install packages and we can have a target that is pretty much the same as linux's
It appears with clang 14 (latest versin used in macos) the type is missing the space
More double/float promotion warning fixes. A lot of double math on the sim side of things, we probably don't need that precision and float will work better on the mcu anyway.
… never double precision.
@Scavanger and @stronnag would you mind having a look and providing some feedback? |
A quick indoor line of sight flight test with a quad was successful. Configurator appears to be happy with the results. I haven't tested any of the simulators. |
Linux is content with xplane/fl2sitl. I guess FreeBSD will be to (test pending) and probably even Windows (test further pending). FreeBSD is also happy, suppose I must test it on Windows ... alas |
And while waiting for the Win10 VM to boot, lets build it on the VisionFive2 board. Yes, it's happy on linux/riscv64 ... looks good to me. |
And finally, it builds on Windows. Works as well as any other recent patch set ...
|
For completeness, built on an antediluvian MacOS VM
Noting also that the more serious issue that MacOS SITL corrupts its own settings still exists; but that's a different and rather more difficult problem. |
That warning is not on the latest macosx compiler which is used by github (Apple clang version 14.0.3 (clang-1403.0.22.14.1)) I also no longer see the settings corruption over here. Can you try with the binary in the artifacts, instead of building your own? I may need to change the build a bit to support older versions of MacOSX though, but I only have access to 13 (Ventura) |
* Remove redundant .zip from artifact names
On my ancient MacOS VM, the settings are always corrupt (even with fresh settings). Fix one corrupt setting, then there's another, fix that, go back one step . The settings ARMing flag can never be cleared. Either with the artefacts build or self built. But if this doesn't happen on a real, modern Mac (vice my ancient VM), it's not a problem. |
Thusly |
clang can be verbose with warnings, but some of it is probably valid when building a 64bit binary.
Highlighted changes:
Open questions: