Weather casting with Machine Learning (SVM and SRNN).

Dependencies:   EthernetInterface GraphicHandler NTPClient SRNN SVM SensorModule mbed-rtos mbed

Revision:
1:8538381cae81
Parent:
0:f6cdb984f638
Child:
2:20ecfe6edd71
--- a/main.cpp	Sun Feb 15 09:28:23 2015 +0000
+++ b/main.cpp	Mon Feb 16 07:53:45 2015 +0000
@@ -1,15 +1,19 @@
 #include "main.hpp"
 
-LocalFileSystem local("local");  // マウントポイントを定義(ディレクトリパスになる)
+LocalFileSystem *local_fs;  // マウントポイントを定義(ディレクトリパスになる)
 
 // 時間(global)
-time_t global_time;      // 現在時刻
-Mutex  time_mutex;       // 時間のMutex
+time_t          global_time;      // 現在時刻
+Mutex           time_mutex;       // 時間のMutex
 // Pointer to Class instance (global)
 SRNN            *srnn;
 MCSVM           *mcsvm;
-SensorModule    *sm;
-GraphicHandler  *gh;
+SensorModule    *sensor_module;
+GraphicHandler  *graphic_handler;
+// ネットワーク関係(global)
+EthernetInterface    eth_if;
+TCPSocketServer      http_server;
+NTPClient            ntp_client;
 
 // 系列データ
 float* new_seqence_data;        // 現在の(一番新しい)系列データ
@@ -50,7 +54,7 @@
 int main(void)
 {
     set_new_handler(no_memory);
-    
+    local_fs = new LocalFileSystem("local");
     setup();
     printf("EXIT SUCESS!! \r\n");
     return 0;