Reading Gcode in LocalFiileSystem and encodeing int array
Diff: MakeSequencer.h
- Revision:
- 2:4fc4593498d7
- Parent:
- 1:4ebb30d54be7
- Child:
- 3:09ee560a3007
--- a/MakeSequencer.h Wed Oct 10 05:34:43 2018 +0000 +++ b/MakeSequencer.h Thu Oct 11 11:07:31 2018 +0000 @@ -4,25 +4,24 @@ #include "mbed.h" #include "string" #define CODE_LENGTH 100 -#define ARRAY_EREMENT 3 +#define ARRAY_EREMENT 10 + class MakeSequencer { public: MakeSequencer(FILE *fp); - bool inherit(int _rows,int _columns,int _data[][CODE_LENGTH]); bool FileOpen(); - void getGcode(int _seq,int* _array); + void getGcode(int _row,int aSize,int* _array); bool ReadGcode(); int getGcodeSize(); private: - char buf[256]; - string code[1][CODE_LENGTH]; - int data[ARRAY_EREMENT][CODE_LENGTH]; - bool find[ARRAY_EREMENT]; - int codesize; + char _buf[256]; + int _data[ARRAY_EREMENT][CODE_LENGTH]; + int _codesize; + LocalFileSystem *_local; FILE *_fp; };