interface towards a Garmin plotter to make measurements come up as boats

Revision:
0:70a1315acc03
diff -r 000000000000 -r 70a1315acc03 garmin_test.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/garmin_test.cpp	Tue Jul 05 08:16:13 2011 +0000
@@ -0,0 +1,20 @@
+char garmin_readable_test(void){
+
+  return(1);
+
+}
+
+char garmin_read_test(void){
+
+static char garmin_string[] = {"123$GPRMC,080158,A,5918.8362,N,01803.7725,E.0.0"};
+
+static char index;
+
+  index++;
+  
+  if(index > 45)
+    index = 0;
+    
+  return(garmin_string[index]);
+
+}
\ No newline at end of file