Other Parts Discussed in Thread: DRV8301
Dear team,
I am interfacing potentiometer with my DRV8301 board and INSTASPIN launchpad.
I am able to read the data and controlled the speed of motor with potentiometer. That is by following commands-
gPotentiometer = HAL_readPotentiometerData(halHandle);
gMotorVars.IqRef_A = gPotentiometer;
and in updateIqRef( ) function-
//_iq iq_ref = _IQmpy(gMotorVars.IqRef_A,_IQ(1.0/USER_IQ_FULL_SCALE_CURRENT_A));
_iq iq_ref = gMotorVars.IqRef_A;
I want to ask that right now i am directly providing the potentiometer data to IqRef_A. Is there any mapping function can be used here instead of directly providing the values? such as _iq iq_ref = mapping_function(min_pot_read,max_pot_read to min_IqRef_A, max_IqRef_A).
also is there any, function that is to be called for current ramping in lab5a?
Thanks.