hoge

Dependents:   2017_Bteam_jushinkun-gamma

Committer:
Komazawa_sun
Date:
Thu Aug 17 06:34:06 2017 +0000
Revision:
0:c9adbf27bd9b
jushinkun_for_gamma_ctrl;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Komazawa_sun 0:c9adbf27bd9b 1 #include "gamma_ctrl.h"
Komazawa_sun 0:c9adbf27bd9b 2
Komazawa_sun 0:c9adbf27bd9b 3 gamma_ctrl::gamma_ctrl(int baudlate_g)
Komazawa_sun 0:c9adbf27bd9b 4 :ctrl_serial(baudlate_g,GAMMA_DATA_SIZE)
Komazawa_sun 0:c9adbf27bd9b 5 {
Komazawa_sun 0:c9adbf27bd9b 6 }
Komazawa_sun 0:c9adbf27bd9b 7
Komazawa_sun 0:c9adbf27bd9b 8 void gamma_ctrl::get_data()
Komazawa_sun 0:c9adbf27bd9b 9 {
Komazawa_sun 0:c9adbf27bd9b 10 //printf("sub class\r\n");
Komazawa_sun 0:c9adbf27bd9b 11 if(allready_set_data == true)
Komazawa_sun 0:c9adbf27bd9b 12 {
Komazawa_sun 0:c9adbf27bd9b 13 for(int t = 0;t < GAMMA_DATA_SIZE;t++)
Komazawa_sun 0:c9adbf27bd9b 14 {
Komazawa_sun 0:c9adbf27bd9b 15 pack.all_data[t] = ctrl_data[t];
Komazawa_sun 0:c9adbf27bd9b 16 //printf("%x",ctrl_data[t]);
Komazawa_sun 0:c9adbf27bd9b 17 }
Komazawa_sun 0:c9adbf27bd9b 18 allready_set_data = false;
Komazawa_sun 0:c9adbf27bd9b 19 //printf("\r\n");
Komazawa_sun 0:c9adbf27bd9b 20 }
Komazawa_sun 0:c9adbf27bd9b 21 /*else
Komazawa_sun 0:c9adbf27bd9b 22 {
Komazawa_sun 0:c9adbf27bd9b 23 for(int t = 0;t < GAMMA_DATA_SIZE;t++)
Komazawa_sun 0:c9adbf27bd9b 24 pack.all_data[t] = 0;
Komazawa_sun 0:c9adbf27bd9b 25 }*/
Komazawa_sun 0:c9adbf27bd9b 26 }