Skip to content
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

Assert caused by null unit in linear interpolator #213

Open
oktal3700 opened this issue Jun 12, 2023 · 0 comments
Open

Assert caused by null unit in linear interpolator #213

oktal3700 opened this issue Jun 12, 2023 · 0 comments
Labels
bug Something isn't working FS9

Comments

@oktal3700
Copy link
Contributor

https://discord.com/channels/539048679160676382/539486309882789888/1116068371188949034

The assert

ASSERT failure in double __thiscall BlackMisc::PhysicalQuantities::CPhysicalQuantity<
  class BlackMisc::PhysicalQuantities::CLengthUnit,class BlackMisc::PhysicalQuantities::CLength
>::value(class BlackMisc::PhysicalQuantities::CLengthUnit) const

"Cannot convert to null"

D:\a\pilotclient\pilotclient\src\blackmisc\pq\physicalquantity.cpp line 394

Is caused by newAlt having a null unit in CInterpolatorLinear::CInterpolant::interpolatePositionAndAltitude

const CAltitude altitude((newAlt - oldAlt) * tf + oldAlt,
                         oldAlt.getReferenceDatum());

The simulator is FS9, in case that matters.

@oktal3700 oktal3700 added bug Something isn't working FS9 labels Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FS9
Projects
None yet
Development

No branches or pull requests

1 participant