Weather casting with Machine Learning (SVM and SRNN).

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

Revision:
2:20ecfe6edd71
Child:
5:b61f3f5b0fc8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_util.hpp	Wed Feb 18 15:02:16 2015 +0000
@@ -0,0 +1,17 @@
+#ifndef MAIN_UTIL_H_INCLUDED
+#define MAIN_UTIL_H_INCLUDED
+
+#include "main.hpp"
+
+// main.cppで書くと冗長なユーティリティ
+
+inline time_t get_JST(void) {
+    return (time(NULL) + (9 * 60 * 60));
+}
+
+extern void check_file_open(FILE*, const char*);  // ファイルのオープンチェック.第一引数はファイルポインタ, 第二引数はファイル名
+                                                  // ホントはdebugだけど, オープン失敗はよく起こるので...  
+extern void truncate_data_file(void);             // 系列データの行数をLEN_DATA_SEQUENCEに切り詰める.(先頭から削除)
+extern void print_status(const char*,...);
+
+#endif /* MAIN_UTIL_H_INCLUDED */
\ No newline at end of file