Final project for ECE 4180.

Dependencies:   GPS SDFileSystem mbed-rtos mbed MPL3115A2

Fork of GPS_HelloWorld by kris gjika

Files at this revision

API Documentation at this revision

Comitter:
cmiller86
Date:
Tue Nov 17 07:22:32 2015 +0000
Parent:
3:b490294520d5
Child:
5:c3e1fc7fa00d
Commit message:
Now compiles correctly

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Nov 17 07:16:58 2015 +0000
+++ b/main.cpp	Tue Nov 17 07:22:32 2015 +0000
@@ -37,7 +37,7 @@
     sdout = fopen("/sd/weather_balloon/log.txt", "w");
 }
 
-void update_gps()
+void update_gps(void const *args)
 {
     while(true)
     {
@@ -50,7 +50,7 @@
     }
 }
 
-void update_temperature()
+void update_temperature(void const *args)
 {
     float tempC1, tempC2, tempC3;
     
@@ -67,7 +67,7 @@
     }
 }
 
-void write_to_log()
+void write_to_log(void const *args)
 {
     while(true)
     {
@@ -91,7 +91,7 @@
     }
 }
 
-void check_cutdown()
+void check_cutdown(void const *args)
 {
     while(true)
     {
@@ -123,6 +123,8 @@
 
 int main()
 {
+    init();
+    
     Thread gps_thread(update_gps);
     Thread temperature_thread(update_temperature);
     Thread log_thread(write_to_log);