Move the 2's complement conversions.
Xnc=Xraw
Ync ...
Znc...
<--------- conversions here
Xavg=Xavg+Xnc
......
Hi J,
Is this correct?:
C
_________________________________________________
Ready!
AT+C002
1082730.12,-110.19,:827302.00
1082510.25,-121.71,:825103.00
1082293.50,-117.87,:822936.00
1082075.00,-125.98,:820750.00
1081853.00,-125.39,:818530.00
1081633.50,-123.93,:816336.00
1081413.25,-116.89,:814133.00
1081195.00,-123.88,:811951.00
1080976.25,-123.18,:809763.00
1080758.62,-116.31,:807587.00
1080539.87,-121.03,:805399.00
1080316.50,-122.30,:803165.00
1080101.87,-121.63,:801019.00
1079883.37,-126.66,:798834.00
1079662.50,-124.66,:796626.00
1079438.75,-119.26,:794388.00
1079219.25,-119.62,:792193.00
1079001.50,-124.56,:790015.00
1078782.00,-123.45,:787821.00
1078561.50,-120.14,:785615.00
1078343.87,-120.81,:783439.00
1078124.00,-123.48,:781241.00
1077904.00,-123.84,:779040.00
1077688.37,-121.58,:776884.00
1077470.25,-125.65,:774703.00
1077251.25,-118.36,:772513.00
_________________________________________________