2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Revision:
23:5e61cf4a8c34
Parent:
22:4d62bd16f037
Child:
24:a7f92dfc5310
--- a/main.cpp	Mon Dec 17 22:26:34 2018 +0000
+++ b/main.cpp	Tue Dec 18 17:09:38 2018 +0000
@@ -30,6 +30,13 @@
 
 EventQueue gpsQueue(32 * EVENTS_EVENT_SIZE);
 
+
+// Callback for gps parse data ready
+void gps_callback() {
+    led3 = !led3;
+}
+    
+
 // thread / eventqueue wrapper for gps parse
 void gps_parse(int c) {
     if (ublox.parse(c)) {
@@ -155,8 +162,9 @@
     printf("Starting gps...\n");
     Thread gpsThread(osPriorityHigh);
     gpsThread.start(callback(&gpsQueue, &EventQueue::dispatch_forever));
+    ublox.subscribe(gps_callback);
     s.attach(gps_handler);
-    
+
     /*
     FILE *fp;
     char buf[128];