Updates on BLDC controller

- added possbility to switch the Control mode while motor is spinning
- added support for Cruise control: activated by b_cruiseCtrlEna, where the target to set is n_cruiseMotTgt. (Needs small aditional handling on the application firmware to set the n_cruiseMotTgt properly to the current operation speed, immediately after activation via b_cruiseCtrlEna).
- extended Phase current measurements z_selPhaCurMeasABC : {iA,iB} = 0; {iB,iC} = 1; {iA,iC} = 2
- added interface for external motor angle measurement from as sensor, e.g., encoder. The selection can be done via b_angleMeasEna.
This commit is contained in:
EmanuelFeru
2020-10-11 20:58:03 +02:00
parent bb38ef1790
commit 3c8a035b2e
360 changed files with 151736 additions and 130057 deletions

View File

@@ -23,8 +23,8 @@
% get_param(gcb, 'BlockType')
% Compile model
BLDCmotorControl_FOC_R2017b_fixdt([],[],[],'compile');
modelName = 'BLDCmotorControl_FOC_R2017b_fixdt';
BLDCmotor_FOC_R2017b_fixdt([],[],[],'compile');
modelName = 'BLDCmotor_FOC_R2017b_fixdt';
Parameter = '';
DataType = '';
@@ -89,7 +89,7 @@ for k = 1:length(Blocks)
end
% Terminate compilation
BLDCmotorControl_FOC_R2017b_fixdt([],[],[],'term');
BLDCmotor_FOC_R2017b_fixdt([],[],[],'term');
% Create table
T = table(Parameter,DataType);