mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:40:05 +00:00
Update VCP display
This commit is contained in:
parent
8d55413d03
commit
cae04fad37
11 changed files with 113 additions and 5 deletions
32
wxdata/source/scwx/common/vcp.cpp
Normal file
32
wxdata/source/scwx/common/vcp.cpp
Normal 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
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue