![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For LIGHT
Diff: CAN/function_CAN.cpp
- Revision:
- 53:4d66fb1c5dd9
- Parent:
- 52:8ea76864368a
--- a/CAN/function_CAN.cpp Wed Feb 19 05:48:57 2020 +0000 +++ b/CAN/function_CAN.cpp Tue Feb 25 07:39:17 2020 +0000 @@ -694,6 +694,10 @@ CAN_TX_DDV_VALVE_MAX_MIN_POS(); break; } + case CRX_DELAY_TEST:{ + flag_delay_test = 1; + break; + } default: break; @@ -1056,7 +1060,7 @@ temp_msg.id = CID_TX_INFO; temp_msg.len = 3; temp_msg.data[0] = (uint8_t) CTX_SEND_ENC_PULSE_PER_POSITION; - int temp_enc_pulse_per_position = (int) (ENC_PULSE_PER_POSITION * 10.0f); + int temp_enc_pulse_per_position = (int) (ENC_PULSE_PER_POSITION); temp_msg.data[1] = (uint8_t) temp_enc_pulse_per_position; temp_msg.data[2] = (uint8_t) (temp_enc_pulse_per_position >> 8); @@ -1384,3 +1388,4 @@ +