hoge
Dependents: 2017_Bteam_jushinkun-gamma
Diff: gamma_ctrl.cpp
- Revision:
- 0:c9adbf27bd9b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gamma_ctrl.cpp Thu Aug 17 06:34:06 2017 +0000 @@ -0,0 +1,26 @@ +#include "gamma_ctrl.h" + +gamma_ctrl::gamma_ctrl(int baudlate_g) + :ctrl_serial(baudlate_g,GAMMA_DATA_SIZE) +{ +} + +void gamma_ctrl::get_data() +{ + //printf("sub class\r\n"); + if(allready_set_data == true) + { + for(int t = 0;t < GAMMA_DATA_SIZE;t++) + { + pack.all_data[t] = ctrl_data[t]; + //printf("%x",ctrl_data[t]); + } + allready_set_data = false; + //printf("\r\n"); + } + /*else + { + for(int t = 0;t < GAMMA_DATA_SIZE;t++) + pack.all_data[t] = 0; + }*/ +} \ No newline at end of file