Parsing GPS Data - Partially Working

With the help of a friend (mostly him), we were able to figure out code that works.
I’ll need to move the data into an array, but other than that it works well.

I’m going to start another thread about serialEvent(). This is pretty much done.
Thanks to those that responded and helped!

void mySplit (String str) {
  int N = str.length(); 
  int i; 
  String str2 = "";  
  char c; 
  for (i = 0; i < N; i++){
    c = str.charAt(i);
    if (c == ',') {
      println(str2);
      str2 = "";
    }
    else {
     str2 += c;
    }
  }
 println(str2);
}
2 Likes