修复GM6020电机接收ID计算错误问题
This commit is contained in:
parent
29877a4b64
commit
62b1783b59
|
@ -95,7 +95,7 @@ static void MotorSenderGrouping(can_instance_config_s *config)
|
||||||
motor_grouping = config->can_handle == &hcan1 ? 2 : 5;
|
motor_grouping = config->can_handle == &hcan1 ? 2 : 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
config->rx_id = 0x204 + motor_id;
|
config->rx_id = 0x204 + motor_id + 1;
|
||||||
sender_enable_flag[motor_grouping] = 1;
|
sender_enable_flag[motor_grouping] = 1;
|
||||||
dji_motor_info[idx]->message_num = motor_send_num;
|
dji_motor_info[idx]->message_num = motor_send_num;
|
||||||
dji_motor_info[idx]->sender_group = motor_grouping;
|
dji_motor_info[idx]->sender_group = motor_grouping;
|
||||||
|
|
Loading…
Reference in New Issue