![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For LIGHT
Diff: function_utilities/function_utilities.cpp
- Revision:
- 44:fe7d5cfd2eea
- Parent:
- 43:b084e5f5d0d5
- Child:
- 45:35fa6884d0c6
diff -r b084e5f5d0d5 -r fe7d5cfd2eea function_utilities/function_utilities.cpp --- a/function_utilities/function_utilities.cpp Tue Jan 07 08:39:22 2020 +0000 +++ b/function_utilities/function_utilities.cpp Tue Jan 14 09:11:20 2020 +0000 @@ -441,7 +441,7 @@ void ROM_CALL_DATA(void) { BNO = flashReadInt(Rom_Sector, RID_BNO); - BNO = 10; + BNO = 11; OPERATING_MODE = flashReadInt(Rom_Sector, RID_OPERATING_MODE); CAN_FREQ = flashReadInt(Rom_Sector, RID_CAN_FREQ); DIR_JOINT_ENC = flashReadInt(Rom_Sector, RID_JOINT_ENC_DIR); @@ -480,7 +480,9 @@ VALVE_LIMIT_MINUS = flashReadInt(Rom_Sector, RID_VALVE_LIMIT_MINUS); VALVE_LIMIT_PLUS = flashReadInt(Rom_Sector, RID_VALVE_LIMIT_PLUS); ENC_PULSE_PER_POSITION = flashReadInt(Rom_Sector, RID_ENC_PULSE_PER_POSITION); + ENC_PULSE_PER_POSITION = (float) 1024.0f; TORQUE_SENSOR_PULSE_PER_TORQUE = flashReadInt(Rom_Sector, RID_TORQUE_SENSOR_PULSE_PER_TORQUE); + TORQUE_SENSOR_PULSE_PER_TORQUE = (float) 2048.0f/5000.0f; PRES_SENSOR_A_PULSE_PER_BAR = (float) (flashReadInt(Rom_Sector, RID_PRES_SENSOR_A_PULSE_PER_BAR)) * 0.01f; PRES_SENSOR_A_PULSE_PER_BAR = 4096.0f / 200.0f; PRES_SENSOR_B_PULSE_PER_BAR = (float) (flashReadInt(Rom_Sector, RID_PRES_SENSOR_B_PULSE_PER_BAR)) * 0.01f;