2023-05-14 10:43 PM
Thank you for support till now, i want to do the open loop current mode using the B-G431B-ESC1 software. This is the code i have written
if(g_motormodeselection_u8 == OPENLOOP_CURRENTMODE )
{
MC_SetCurrentReferenceMotor1(g_qdreference_s);
MC_ProgramTorqueRampMotor1(g_qdreference_s.q ,0);
MCI_SetOpenLoopCurrent(&Mci[MOTOR_0]);
}
I am setting id=0 and iq around 20. Please guide if the code is ok.
One other doubt is in open loop current does it read the position feedback, i am assuming it does not read. Am i correct? Please help.
2023-05-15 03:42 AM
I think one correction after going through the documentation is
if(g_motormodeselection_u8 == OPENLOOP_CURRENTMODE )
{
MC_ProgramTorqueRampMotor1(g_qdreference_s.q ,0);
MC_SetCurrentReferenceMotor1(g_qdreference_s);
MCI_SetOpenLoopCurrent(&Mci[MOTOR_0]);
}