Reading Gcode in LocalFiileSystem and encodeing int array. but this program has bug.probably

Fork of MakeSequencer by yuki sato

Committer:
satoyuki1111
Date:
Thu Oct 11 11:23:53 2018 +0000
Revision:
3:09ee560a3007
Parent:
2:4fc4593498d7
Child:
4:1d7c50f17687
v1.3

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 2:4fc4593498d7 7 #define ARRAY_EREMENT 10
satoyuki1111 2:4fc4593498d7 8
satoyuki1111 0:359eba7592ca 9
satoyuki1111 0:359eba7592ca 10 class MakeSequencer
satoyuki1111 0:359eba7592ca 11 {
satoyuki1111 0:359eba7592ca 12 public:
satoyuki1111 0:359eba7592ca 13 MakeSequencer(FILE *fp);
satoyuki1111 0:359eba7592ca 14
satoyuki1111 0:359eba7592ca 15 bool FileOpen();
satoyuki1111 2:4fc4593498d7 16 void getGcode(int _row,int aSize,int* _array);
satoyuki1111 0:359eba7592ca 17 bool ReadGcode();
satoyuki1111 1:4ebb30d54be7 18 int getGcodeSize();
satoyuki1111 0:359eba7592ca 19
satoyuki1111 0:359eba7592ca 20 private:
satoyuki1111 2:4fc4593498d7 21 char _buf[256];
satoyuki1111 2:4fc4593498d7 22 int _data[ARRAY_EREMENT][CODE_LENGTH];
satoyuki1111 2:4fc4593498d7 23 int _codesize;
satoyuki1111 2:4fc4593498d7 24
satoyuki1111 3:09ee560a3007 25 int _tempnum[ARRAY_EREMENT];
satoyuki1111 3:09ee560a3007 26 int _ele;
satoyuki1111 3:09ee560a3007 27 char _element[ARRAY_EREMENT][CODE_LENGTH];
satoyuki1111 3:09ee560a3007 28 char _char;
satoyuki1111 3:09ee560a3007 29 int _count;
satoyuki1111 3:09ee560a3007 30 bool _check[ARRAY_EREMENT][CODE_LENGTH];
satoyuki1111 3:09ee560a3007 31
satoyuki1111 0:359eba7592ca 32 LocalFileSystem *_local;
satoyuki1111 0:359eba7592ca 33 FILE *_fp;
satoyuki1111 0:359eba7592ca 34 };
satoyuki1111 0:359eba7592ca 35
satoyuki1111 0:359eba7592ca 36 #endif