Make Gcode from .txt data. It is 2D array, for Robot Path.

Dependents:   WRS_mechanamu_test WRS2019_master

Revision:
0:359eba7592ca
Child:
1:4ebb30d54be7
diff -r 000000000000 -r 359eba7592ca MakeSequencer.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MakeSequencer.h	Tue Oct 09 12:19:02 2018 +0000
@@ -0,0 +1,29 @@
+#ifndef MAKESEQ_H
+#define MAKESEQ_H
+
+#include "mbed.h"
+#include "string"
+#define CODE_LENGTH 100
+#define ARRAY_EREMENT 3
+
+class MakeSequencer
+{
+    public:
+    MakeSequencer(FILE *fp);
+    
+    bool inherit(int _rows,int _columns,int _data[][CODE_LENGTH]);
+    bool FileOpen();
+    void getGcode(int _seq,int* _array);
+    bool ReadGcode();
+    
+    private:
+    char   buf[256];
+    string code[1][CODE_LENGTH];
+    int    data[ARRAY_EREMENT][CODE_LENGTH];
+    bool   find[ARRAY_EREMENT];
+    const char* _name;
+    LocalFileSystem *_local;
+    FILE *_fp;
+};
+
+#endif