111

Dependencies:   BufferedSerial FastPWM mbed

Committer:
sbh9428
Date:
Tue Apr 12 06:52:10 2016 +0000
Revision:
0:f3108add3d98
11

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sbh9428 0:f3108add3d98 1 /*
sbh9428 0:f3108add3d98 2 * commandt.h
sbh9428 0:f3108add3d98 3 *
sbh9428 0:f3108add3d98 4 * Created on: 2016. 2. 19.
sbh9428 0:f3108add3d98 5 * Author: sbh9428
sbh9428 0:f3108add3d98 6 */
sbh9428 0:f3108add3d98 7
sbh9428 0:f3108add3d98 8 #ifndef COMMANDT_H_
sbh9428 0:f3108add3d98 9 #define COMMANDT_H_
sbh9428 0:f3108add3d98 10
sbh9428 0:f3108add3d98 11 #include "BufferedSerial.h"
sbh9428 0:f3108add3d98 12 #include "controlt.h"
sbh9428 0:f3108add3d98 13
sbh9428 0:f3108add3d98 14 class command_t {
sbh9428 0:f3108add3d98 15 public:
sbh9428 0:f3108add3d98 16 void clear_data();
sbh9428 0:f3108add3d98 17 void parse();
sbh9428 0:f3108add3d98 18 void get_data();
sbh9428 0:f3108add3d98 19 double asci_to_bin(int *start);
sbh9428 0:f3108add3d98 20
sbh9428 0:f3108add3d98 21 command_t();
sbh9428 0:f3108add3d98 22 command_t(BufferedSerial* _pc, control_t* _control);
sbh9428 0:f3108add3d98 23 virtual ~command_t();
sbh9428 0:f3108add3d98 24 private:
sbh9428 0:f3108add3d98 25 int count;
sbh9428 0:f3108add3d98 26 int data[30];
sbh9428 0:f3108add3d98 27 int time;
sbh9428 0:f3108add3d98 28
sbh9428 0:f3108add3d98 29 BufferedSerial *pc;
sbh9428 0:f3108add3d98 30 control_t *control;
sbh9428 0:f3108add3d98 31 };
sbh9428 0:f3108add3d98 32
sbh9428 0:f3108add3d98 33
sbh9428 0:f3108add3d98 34 #endif /* COMMANDT_H_ */
sbh9428 0:f3108add3d98 35
sbh9428 0:f3108add3d98 36