mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-03-28 18:06:37 +01:00
Integrate many changes from master
This commit is contained in:
@@ -431,7 +431,8 @@ GwXDRFoundMapping GwXDRMappings::getMapping(String xName,String xType,String xUn
|
||||
}
|
||||
return selectMapping(&(it->second),instance,n183Key.c_str());
|
||||
}
|
||||
GwXDRFoundMapping GwXDRMappings::getMapping(GwXDRCategory category,int selector,int field,int instance){
|
||||
GwXDRFoundMapping GwXDRMappings::getMapping(double value,GwXDRCategory category,int selector,int field,int instance){
|
||||
if (value == N2kDoubleNA) return GwXDRFoundMapping(); //do not add to unknown mappings
|
||||
unsigned long n2kKey=GwXDRMappingDef::n2kKey(category,selector,field);
|
||||
auto it=n2kMap.find(n2kKey);
|
||||
if (it == n2kMap.end()){
|
||||
@@ -502,4 +503,4 @@ String GwXDRMappings::getXdrEntry(String mapping, double value,int instance){
|
||||
|
||||
const GwXDRType * GwXDRMappings::findType(const String &typeString, const String &unitString) const{
|
||||
return ::findType(typeString,unitString);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -244,11 +244,11 @@ class GwXDRMappings{
|
||||
//get the mappings
|
||||
//the returned mapping will exactly contain one mapping def
|
||||
GwXDRFoundMapping getMapping(String xName,String xType,String xUnit);
|
||||
GwXDRFoundMapping getMapping(GwXDRCategory category,int selector,int field=0,int instance=-1);
|
||||
GwXDRFoundMapping getMapping(double value,GwXDRCategory category,int selector,int field=0,int instance=-1);
|
||||
String getXdrEntry(String mapping, double value,int instance=0);
|
||||
const char * getUnMapped();
|
||||
const GwXDRType * findType(const String &typeString, const String &unitString) const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user