mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 03:40:05 +00:00
Use static cast when getting elevations to convert from double to float
This commit is contained in:
parent
0ac0e03ff8
commit
34eb3af698
2 changed files with 2 additions and 4 deletions
|
|
@ -735,8 +735,7 @@ float AwsLevel2ChunksDataProvider::GetCurrentElevation()
|
||||||
|
|
||||||
if (vcpData != nullptr)
|
if (vcpData != nullptr)
|
||||||
{
|
{
|
||||||
// NOLINTNEXTLINE(*-narrowing-conversions) Float is plenty
|
return static_cast<float>(vcpData->elevation_angle(lastElevation->first));
|
||||||
return vcpData->elevation_angle(lastElevation->first);
|
|
||||||
}
|
}
|
||||||
else if (digitalRadarData0 != nullptr)
|
else if (digitalRadarData0 != nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -221,8 +221,7 @@ uint16_t VolumeCoveragePatternData::number_of_base_tilts() const
|
||||||
double VolumeCoveragePatternData::elevation_angle(uint16_t e) const
|
double VolumeCoveragePatternData::elevation_angle(uint16_t e) const
|
||||||
{
|
{
|
||||||
|
|
||||||
float elevationAngleConverted =
|
double elevationAngleConverted =
|
||||||
// NOLINTNEXTLINE This conversion is accurate
|
|
||||||
p->elevationCuts_[e].elevationAngle_ * ANGLE_DATA_SCALE;
|
p->elevationCuts_[e].elevationAngle_ * ANGLE_DATA_SCALE;
|
||||||
// Any elevation above 90 degrees should be interpreted as a
|
// Any elevation above 90 degrees should be interpreted as a
|
||||||
// negative angle
|
// negative angle
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue