Sungwoo Kim
/
HydraulicControlBoard_LIGHT
For LIGHT
Diff: function_utilities/function_utilities.cpp
- Revision:
- 65:443a5f0e8ee1
- Parent:
- 63:a3c7f31742c9
- Child:
- 66:d385a08132d7
diff -r dc5b5c258579 -r 443a5f0e8ee1 function_utilities/function_utilities.cpp --- a/function_utilities/function_utilities.cpp Mon May 18 00:36:59 2020 +0000 +++ b/function_utilities/function_utilities.cpp Tue May 19 01:36:41 2020 +0000 @@ -270,6 +270,7 @@ int CUR_VELOCITY_OLD = 0; int cnt_findhome = 0; int cnt_vel_findhome = 0; +int cnt_findhome_wait = 0; int FINDHOME_VELOCITY = 0; int FINDHOME_VELOCITY_OLD = 0; int FINDHOME_POSITION = 0; @@ -374,7 +375,7 @@ { FlashWriter writer(6);//2부터 7까지 되는듯 아마 sector if (!writer.ready()) writer.open(); - //BNO = 1; +// BNO = 11; writer.write(RID_BNO,(int) BNO); // write at address, 쓸때도 4byte씩 씀 writer.write(RID_OPERATING_MODE,(int) OPERATING_MODE); writer.write(RID_SENSING_MODE, (int) SENSING_MODE); @@ -455,6 +456,7 @@ void ROM_CALL_DATA(void) { BNO = flashReadInt(Rom_Sector, RID_BNO); +// BNO = 11; OPERATING_MODE = flashReadInt(Rom_Sector, RID_OPERATING_MODE); SENSING_MODE = flashReadInt(Rom_Sector, RID_SENSING_MODE); CURRENT_CONTROL_MODE = flashReadInt(Rom_Sector, RID_CURRENT_CONTROL_MODE); @@ -535,6 +537,8 @@ K_SPRING = flashReadInt(Rom_Sector, RID_K_SPRING); D_DAMPER = flashReadInt(Rom_Sector, RID_D_DAMPER); +// ROM_RESET_DATA(); + } /*******************************************************************************