-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
References to F64 in CmdDispatcher on a platform that doesn't support F64 #3390
Comments
It looks like this is a regression introduced by #3319. The issue is that on platforms that do support F64, an implicit promotion from F32 to F64 can cause a warning. Perhaps we should define a type that is F64 on platforms that support F64, otherwise F32, and cast to that. |
Can you clarify what is going on with this platform? The type |
I did a little more digging. I inherited the configuration (including HAS_F64 unset) from another engineer, so I'm not familiar with the rationale behind the decision to unset HAS_F64. It looks like Of course, I can confirm that calling I wonder whether this is a sign that the |
It was mainly for deeply embedded targets that didn't have any FP support. We (I) wanted to be able to turn it off to get compiles to work. The caveat was that certain components wouldn't be portable to that environment if they required F64. |
All environments that support C++ should provide at least soft F64, because |
Implicit In future versions of F´ we will be removing the |
@jwest115 I am removing HAS_F64 from the hand code, are there references in the auto code? |
Problem Description
I'm using F Prime on a platform that doesn't have support for 64-bit floats, so the F64 type is not defined. This has been working fine, but I updated to the latest
devel
commit earlier today, and I encountered this error while compiling autocode:For reference, here is the command that causes this problem:
You'll note that it does not reference F64, but rather F32.
Context / Environment
Execute
fprime-util version-check
and share the output.How to Reproduce
Expected Behavior
The FPP autocoder should not substitute F64s for F32s on platforms that do not support F64s.
The text was updated successfully, but these errors were encountered: