Update VCP display

This commit is contained in:
Dan Paulat 2021-12-22 16:36:04 -06:00
parent 8d55413d03
commit cae04fad37
11 changed files with 113 additions and 5 deletions

View file

@ -0,0 +1,32 @@
#include <scwx/common/vcp.hpp>
#include <unordered_map>
namespace scwx
{
namespace common
{
static const std::string CLEAR_AIR_MODE = "Clear Air Mode";
static const std::string PRECIPITATION_MODE = "Precipitation Mode";
std::string GetVcpDescription(uint16_t vcp)
{
switch (vcp)
{
case 31:
case 32:
case 35: return CLEAR_AIR_MODE;
case 12:
case 112:
case 121:
case 212:
case 215: return PRECIPITATION_MODE;
default: return "?";
}
}
} // namespace common
} // namespace scwx

View file

@ -285,6 +285,11 @@ float VolumeDataBlock::longitude() const
return p->longitude_;
}
uint16_t VolumeDataBlock::volume_coverage_pattern_number() const
{
return p->volumeCoveragePatternNumber_;
}
std::shared_ptr<VolumeDataBlock>
VolumeDataBlock::Create(const std::string& dataBlockType,
const std::string& dataName,