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

Dependents:   WRS_mechanamu_test WRS2019_master

Committer:
satoyuki1111
Date:
Tue Oct 09 12:19:02 2018 +0000
Revision:
0:359eba7592ca
Child:
1:4ebb30d54be7
Gcode Sequencer used by LocalFileSystem;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
satoyuki1111 0:359eba7592ca 1 #ifndef MAKESEQ_H
satoyuki1111 0:359eba7592ca 2 #define MAKESEQ_H
satoyuki1111 0:359eba7592ca 3
satoyuki1111 0:359eba7592ca 4 #include "mbed.h"
satoyuki1111 0:359eba7592ca 5 #include "string"
satoyuki1111 0:359eba7592ca 6 #define CODE_LENGTH 100
satoyuki1111 0:359eba7592ca 7 #define ARRAY_EREMENT 3
satoyuki1111 0:359eba7592ca 8
satoyuki1111 0:359eba7592ca 9 class MakeSequencer
satoyuki1111 0:359eba7592ca 10 {
satoyuki1111 0:359eba7592ca 11 public:
satoyuki1111 0:359eba7592ca 12 MakeSequencer(FILE *fp);
satoyuki1111 0:359eba7592ca 13
satoyuki1111 0:359eba7592ca 14 bool inherit(int _rows,int _columns,int _data[][CODE_LENGTH]);
satoyuki1111 0:359eba7592ca 15 bool FileOpen();
satoyuki1111 0:359eba7592ca 16 void getGcode(int _seq,int* _array);
satoyuki1111 0:359eba7592ca 17 bool ReadGcode();
satoyuki1111 0:359eba7592ca 18
satoyuki1111 0:359eba7592ca 19 private:
satoyuki1111 0:359eba7592ca 20 char buf[256];
satoyuki1111 0:359eba7592ca 21 string code[1][CODE_LENGTH];
satoyuki1111 0:359eba7592ca 22 int data[ARRAY_EREMENT][CODE_LENGTH];
satoyuki1111 0:359eba7592ca 23 bool find[ARRAY_EREMENT];
satoyuki1111 0:359eba7592ca 24 const char* _name;
satoyuki1111 0:359eba7592ca 25 LocalFileSystem *_local;
satoyuki1111 0:359eba7592ca 26 FILE *_fp;
satoyuki1111 0:359eba7592ca 27 };
satoyuki1111 0:359eba7592ca 28
satoyuki1111 0:359eba7592ca 29 #endif