for_gamma
GammaPool.cpp@0:519ec302e9b8, 2017-08-18 (annotated)
- Committer:
- Komazawa_sun
- Date:
- Fri Aug 18 03:12:18 2017 +0000
- Revision:
- 0:519ec302e9b8
- Child:
- 3:8487ffc7b69c
datapool_for_gamma
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Komazawa_sun | 0:519ec302e9b8 | 1 | #include "GammaPool.h" |
Komazawa_sun | 0:519ec302e9b8 | 2 | |
Komazawa_sun | 0:519ec302e9b8 | 3 | GammaPool::GammaPool() |
Komazawa_sun | 0:519ec302e9b8 | 4 | { |
Komazawa_sun | 0:519ec302e9b8 | 5 | GammaPool::reset(); |
Komazawa_sun | 0:519ec302e9b8 | 6 | } |
Komazawa_sun | 0:519ec302e9b8 | 7 | |
Komazawa_sun | 0:519ec302e9b8 | 8 | void GammaPool::up_load() |
Komazawa_sun | 0:519ec302e9b8 | 9 | { |
Komazawa_sun | 0:519ec302e9b8 | 10 | data_index[0] = ctrl.rx; |
Komazawa_sun | 0:519ec302e9b8 | 11 | data_index[1] = ctrl.ry; |
Komazawa_sun | 0:519ec302e9b8 | 12 | data_index[2] = ctrl.lx; |
Komazawa_sun | 0:519ec302e9b8 | 13 | data_index[3] = ctrl.r_sw1; |
Komazawa_sun | 0:519ec302e9b8 | 14 | data_index[4] = ctrl.r_sw2; |
Komazawa_sun | 0:519ec302e9b8 | 15 | data_index[5] = ctrl.r_sw3; |
Komazawa_sun | 0:519ec302e9b8 | 16 | data_index[6] = ctrl.r_sw4; |
Komazawa_sun | 0:519ec302e9b8 | 17 | data_index[7] = ctrl.r_s_sw1; |
Komazawa_sun | 0:519ec302e9b8 | 18 | data_index[8] = ctrl.r_s_sw2; |
Komazawa_sun | 0:519ec302e9b8 | 19 | data_index[9] = ctrl.l_sw1; |
Komazawa_sun | 0:519ec302e9b8 | 20 | data_index[10] = ctrl.l_sw2; |
Komazawa_sun | 0:519ec302e9b8 | 21 | data_index[11] = ctrl.l_sw3; |
Komazawa_sun | 0:519ec302e9b8 | 22 | data_index[12] = ctrl.l_sw4; |
Komazawa_sun | 0:519ec302e9b8 | 23 | data_index[13] = ctrl.l_s_sw1; |
Komazawa_sun | 0:519ec302e9b8 | 24 | data_index[14] = ctrl.l_s_sw2; |
Komazawa_sun | 0:519ec302e9b8 | 25 | data_index[15] = ctrl.mode1; |
Komazawa_sun | 0:519ec302e9b8 | 26 | data_index[16] = ctrl.mode2; |
Komazawa_sun | 0:519ec302e9b8 | 27 | data_index[17] = ctrl.r_srd; |
Komazawa_sun | 0:519ec302e9b8 | 28 | data_index[18] = ctrl.l_srd; |
Komazawa_sun | 0:519ec302e9b8 | 29 | data_index[19] = ar.r.max_limit; |
Komazawa_sun | 0:519ec302e9b8 | 30 | data_index[20] = ar.r.min_limit; |
Komazawa_sun | 0:519ec302e9b8 | 31 | data_index[21] = ar.l.max_limit; |
Komazawa_sun | 0:519ec302e9b8 | 32 | data_index[22] = ar.l.min_limit; |
Komazawa_sun | 0:519ec302e9b8 | 33 | } |
Komazawa_sun | 0:519ec302e9b8 | 34 | |
Komazawa_sun | 0:519ec302e9b8 | 35 | void GammaPool::reset(){ |
Komazawa_sun | 0:519ec302e9b8 | 36 | for(int t = 0; t < 10; t++) |
Komazawa_sun | 0:519ec302e9b8 | 37 | ctrl.all_data[t] = 0; |
Komazawa_sun | 0:519ec302e9b8 | 38 | for(int t = 0; t < 4; t++) |
Komazawa_sun | 0:519ec302e9b8 | 39 | a.all_data[t] = 0; |
Komazawa_sun | 0:519ec302e9b8 | 40 | ar.all_data[0] = 0; |
Komazawa_sun | 0:519ec302e9b8 | 41 | } |