1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

intermediate: fix some n2k->xdr mappings, add backwards conversions

This commit is contained in:
wellenvogel
2021-12-03 22:07:21 +01:00
parent 04d90447e8
commit 236c417fb5
6 changed files with 223 additions and 19 deletions

View File

@@ -171,6 +171,10 @@ class GwXDRFoundMapping : public GwBoatItemNameProvider{
String getTransducerName(){
return definition->getTransducerName(instanceId);
}
double valueFromXdr(double value){
if (type->fromnmea) return (*(type->fromnmea))(value);
return value;
}
XdrEntry buildXdrEntry(double value);
//boat Data info
virtual String getBoatItemName(){