The sentences are NMEA sentences, the NMEA protocol is used to exchange data between navigational devices on board of (seagoing) ships. These devices could be a GPS, gyrocompass, echosounder etc. We intend to use the sentence that starts with $GPRMC..... This sentence comes from the GPS, among other several sentences.
There are two versions of the $GPRMC sentence:
$GPRMC,135916.14,A,5250.87700,N,00536.88828,E,0004.0,270.0,300512,0.0,W*7A
and
$GPRMC,135906.05,A,5250.87700,N,00536.89012,E,0004.0,270.0,290512,0.0,W,A*1E
The difference between these versions is the addition of an extra field at the end of the sentence/befor the checksum (being after the W and before the *). On some of our installations we have the first, on some the latter.
The number we need to extract is 4.0 in the above sentences, the 8th field. The length of the field containing this number might vary.
We have a supplier that does not succeed in making a program extracting this 4.0. Maybe we can get the program they already made and adapt this so it works with counting delimiters.