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

Fork of MakeSequencer by yuki sato

Committer:
satoyuki1111
Date:
Wed Oct 17 01:09:47 2018 +0000
Revision:
4:1d7c50f17687
Parent:
3:09ee560a3007
v3

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