norbert-walter / esp32-nmea2000-obp60

nmea2000 gateway with ESP32
GNU General Public License v2.0
14 stars 10 forks source link

dev20220722: Formatter error with certain numbers #73

Open W-Geronius opened 2 years ago

W-Geronius commented 2 years ago

See AWA:

image

$GPRMC,095051.618,A,5237.149350,N,00530.494523,E,4.5,39.0,250822,,,*1E
$IIVHW,39.0,T,39.0,M,4.5,N,8.3,K*5F
$GPVTG,39.0,T,39.0,M,4.5,N,8.3,K*44
$IIHDT,39.0,T*18
$GPGLL,5237.149350,N,00530.494523,E,095051.618,A*31
$GPGGA,095051.618,5237.149350,N,00530.494523,E,1,4,3.1,1.0,M,,,,*3D
$GPGSA,A,3,8,11,15,22,,,,,,,,,5.0,3.1,0.9*00
$GPZDA,095051.618,25,08,2022,02,00*5E
$WIMWD,285.0,T,285.0,M,11.0,N,5.7,M*68
$WIMWV,270.1,R,10.0,N,A*16
$IIMTW,5.4,C*22
$SDDPT,3.0,0.3*57
$SDDBT,9.8,f,3.0,M,1.6,F*03
$SDDBK,9.8,f,3.0,M,1.6,F*1C
$SDDBS,9.8,f,3.0,M,1.6,F*04

image

generated by NMEA Simulator, overflow when AWA is 269 or 270. Works fine with other SOG and TWS/TWD input values, even if AWA results to 270

image

norbert-walter commented 4 months ago

I must look to find the format error of this page.