Make Gcode from .txt data. It is 2D array, for Robot Path.
Dependents: WRS_mechanamu_test WRS2019_master
Diff: MakeSequencer.cpp
- Revision:
- 1:4ebb30d54be7
- Parent:
- 0:359eba7592ca
- Child:
- 2:4fc4593498d7
diff -r 359eba7592ca -r 4ebb30d54be7 MakeSequencer.cpp --- a/MakeSequencer.cpp Tue Oct 09 12:19:02 2018 +0000 +++ b/MakeSequencer.cpp Wed Oct 10 05:34:43 2018 +0000 @@ -52,10 +52,16 @@ } } +int MakeSequencer::getGcodeSize() +{ + return codesize; +} + bool MakeSequencer::ReadGcode() { for(int i = 0;fgets(buf,sizeof(buf), _fp) != NULL;i++) { + codesize = i+1; if(i > CODE_LENGTH) return false;