Make Gcode from .txt data. It is 2D array, for Robot Path.

Dependents:   WRS_mechanamu_test WRS2019_master

MakeSequencer.h

Committer:
sgrsn
Date:
2018-11-14
Revision:
6:e513810fc3a6
Parent:
5:9b4fcc87af6a

File content as of revision 6:e513810fc3a6:

#ifndef MAKESEQ3_H
#define MAKESEQ3_H

#include "mbed.h"
#include "string"
#define CODE_LENGTH 15
#define ARRAY_EREMENT 6
#define BUF 256


class MakeSequencer
{
    public:
    MakeSequencer(FILE *fp);
    bool FileOpen();
    void getGcode(int row,int aSize,int* array);
    int  getGcodeSize();
    bool ReadGcode();
    
    private: 
    int    _data[ARRAY_EREMENT][CODE_LENGTH];
    int    _codesize;
    int    _ele;
    int    _count;
    LocalFileSystem *_local;
    FILE *_fp;
};

#endif