mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-15 23:13:07 +01:00
correctly map pressure from bar to pascal in xdr
This commit is contained in:
@@ -41,19 +41,20 @@ double ps2ph(double v)
|
||||
GwXDRType *types[] = {
|
||||
new GwXDRType(GwXDRType::PRESS, "P", "P"),
|
||||
new GwXDRType(GwXDRType::PRESS, "P", "B",
|
||||
BarToP,
|
||||
PtoBar,
|
||||
BarToP),
|
||||
"P"),
|
||||
new GwXDRType(GwXDRType::VOLT, "U", "V"),
|
||||
new GwXDRType(GwXDRType::AMP, "I", "A"),
|
||||
new GwXDRType(GwXDRType::TEMP, "C", "K"),
|
||||
new GwXDRType(GwXDRType::TEMP, "C", "C", CToKelvin, KelvinToC),
|
||||
new GwXDRType(GwXDRType::TEMP, "C", "C", CToKelvin, KelvinToC,"K"),
|
||||
new GwXDRType(GwXDRType::HUMID, "H", "P"), //percent
|
||||
new GwXDRType(GwXDRType::VOLPERCENT, "V", "P"),
|
||||
new GwXDRType(GwXDRType::VOLUME, "V", "M", m3ToL, ltrTom3),
|
||||
new GwXDRType(GwXDRType::VOLUME, "V", "M", m3ToL, ltrTom3,"L"),
|
||||
new GwXDRType(GwXDRType::FLOW, "R", "I", ps2ph, ph2ps),
|
||||
new GwXDRType(GwXDRType::GENERIC, "G", ""),
|
||||
new GwXDRType(GwXDRType::DISPLACEMENT, "A", "P"),
|
||||
new GwXDRType(GwXDRType::DISPLACEMENTD, "A", "D",DegToRad,RadToDeg),
|
||||
new GwXDRType(GwXDRType::DISPLACEMENTD, "A", "D",DegToRad,RadToDeg,"rd"),
|
||||
new GwXDRType(GwXDRType::RPM,"T","R"),
|
||||
//important to have 2x NULL!
|
||||
NULL,
|
||||
|
||||
Reference in New Issue
Block a user