mirror of
https://github.com/EFeru/bldc-motor-control-FOC.git
synced 2025-08-01 08:04:27 +02:00
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:
@@ -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);
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user