Reading Gcode in LocalFiileSystem and encodeing int array
MakeSequencer.h
- Committer:
- satoyuki1111
- Date:
- 2018-10-10
- Revision:
- 1:4ebb30d54be7
- Parent:
- 0:359eba7592ca
- Child:
- 2:4fc4593498d7
File content as of revision 1:4ebb30d54be7:
#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(); int getGcodeSize(); private: char buf[256]; string code[1][CODE_LENGTH]; int data[ARRAY_EREMENT][CODE_LENGTH]; bool find[ARRAY_EREMENT]; int codesize; LocalFileSystem *_local; FILE *_fp; }; #endif