-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Common: Add motID to event; AMCFOC: evt sorter; AMCBLDC: fix set Volt…
…age (#96)
- Loading branch information
Showing
37 changed files
with
238 additions
and
254 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...VZKhX41U/f9ngmlbrgoNAu2HPakO-F4_mn_Qd.xml → ...VZKhX41U/-LUxQ3IaWTIXsyilgcIVA4OsmEId.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ds/amcbldc/resources/project/IDhMnXn6J-Ju2wh1nEFVZKhX41U/-LUxQ3IaWTIXsyilgcIVA4OsmEIp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Info location="initialize_amcbldc_config.m" type="File"/> |
2 changes: 0 additions & 2 deletions
2
...ds/amcbldc/resources/project/IDhMnXn6J-Ju2wh1nEFVZKhX41U/f9ngmlbrgoNAu2HPakO-F4_mn_Qp.xml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
boards/amcbldc/resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Info Name="AMC_BLDC_legacy"/> | ||
<Info Name="AMC_BLDC"/> |
Binary file modified
BIN
-606 Bytes
(100%)
boards/amcbldc/sim2can/experiment_supervisor/experiment_supervisor_user.slx
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
%% ------------------------------------------------------------------ | ||
% You can modify the values of the fields in ActuatorInitConfMultiple | ||
% and evaluate this cell to create/update this structure | ||
% in the MATLAB base workspace. | ||
% ------------------------------------------------------------------- | ||
|
||
%% CONFIGURATION FOR FIRST MOTOR | ||
function initialize_amcbldc_config | ||
AmcbldcInitConf(1).thresholds = struct; | ||
AmcbldcInitConf(1).thresholds.jntVelMax = single(40000); | ||
AmcbldcInitConf(1).thresholds.motorNominalCurrents = single(0.35); | ||
AmcbldcInitConf(1).thresholds.motorPeakCurrents = single(0.7); | ||
AmcbldcInitConf(1).thresholds.motorOverloadCurrents = single(1); | ||
AmcbldcInitConf(1).thresholds.motorPwmLimit = uint32(32000); | ||
AmcbldcInitConf(1).thresholds.motorCriticalTemperature = single(0); | ||
AmcbldcInitConf(1).pids = struct; | ||
AmcbldcInitConf(1).pids.currentPID = struct; | ||
AmcbldcInitConf(1).pids.currentPID.type = ControlModes.Current; | ||
AmcbldcInitConf(1).pids.currentPID.OutMax = single(0); | ||
AmcbldcInitConf(1).pids.currentPID.OutMin = single(0); | ||
AmcbldcInitConf(1).pids.currentPID.P = single(2); | ||
AmcbldcInitConf(1).pids.currentPID.I = single(500); | ||
AmcbldcInitConf(1).pids.currentPID.D = single(0); | ||
AmcbldcInitConf(1).pids.currentPID.N = single(10); | ||
AmcbldcInitConf(1).pids.currentPID.I0 = single(0); | ||
AmcbldcInitConf(1).pids.currentPID.D0 = single(0); | ||
AmcbldcInitConf(1).pids.currentPID.shift_factor = uint8(0); | ||
AmcbldcInitConf(1).pids.velocityPID = struct; | ||
AmcbldcInitConf(1).pids.velocityPID.type = ControlModes.Velocity; | ||
AmcbldcInitConf(1).pids.velocityPID.OutMax = single(0); | ||
AmcbldcInitConf(1).pids.velocityPID.OutMin = single(0); | ||
AmcbldcInitConf(1).pids.velocityPID.P = single(-20); | ||
AmcbldcInitConf(1).pids.velocityPID.I = single(-20); | ||
AmcbldcInitConf(1).pids.velocityPID.D = single(0); | ||
AmcbldcInitConf(1).pids.velocityPID.N = single(100); | ||
AmcbldcInitConf(1).pids.velocityPID.I0 = single(0); | ||
AmcbldcInitConf(1).pids.velocityPID.D0 = single(0); | ||
AmcbldcInitConf(1).pids.velocityPID.shift_factor = uint8(10); | ||
AmcbldcInitConf(1).pids.positionPID = struct; | ||
AmcbldcInitConf(1).pids.positionPID.type = ControlModes.Position; | ||
AmcbldcInitConf(1).pids.positionPID.OutMax = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.OutMin = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.P = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.I = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.D = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.N = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.I0 = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.D0 = single(0); | ||
AmcbldcInitConf(1).pids.positionPID.shift_factor = uint8(0); | ||
AmcbldcInitConf(1).motor = struct; | ||
AmcbldcInitConf(1).motor.externals = struct; | ||
AmcbldcInitConf(1).motor.externals.enable_verbosity = false; | ||
AmcbldcInitConf(1).motor.externals.has_hall_sens = true; | ||
AmcbldcInitConf(1).motor.externals.has_quadrature_encoder = false; | ||
AmcbldcInitConf(1).motor.externals.has_speed_quadrature_encoder = false; | ||
AmcbldcInitConf(1).motor.externals.has_temperature_sens = false; | ||
AmcbldcInitConf(1).motor.externals.encoder_tolerance = uint8(0); | ||
AmcbldcInitConf(1).motor.externals.pole_pairs = uint8(7); | ||
AmcbldcInitConf(1).motor.externals.rotor_encoder_resolution = int16(0); | ||
AmcbldcInitConf(1).motor.externals.rotor_index_offset = int16(0); | ||
AmcbldcInitConf(1).motor.externals.use_index = false; | ||
AmcbldcInitConf(1).motor.Kbemf = single(0); | ||
AmcbldcInitConf(1).motor.Rphase = single(0); | ||
AmcbldcInitConf(1).motor.Imin = single(0); | ||
AmcbldcInitConf(1).motor.Imax = single(0); | ||
AmcbldcInitConf(1).motor.Vmax = single(24); | ||
AmcbldcInitConf(1).motor.resistance = single(25.9); | ||
AmcbldcInitConf(1).motor.inductance = single(271); | ||
AmcbldcInitConf(1).motor.thermal_resistance = single(16); | ||
AmcbldcInitConf(1).motor.thermal_time_constant = single(797.5); | ||
AmcbldcInitConf(1).motor.hall_sensors_offset = single(30); | ||
|
||
update_initial_actuators_config("amcbldc.sldd", "AmcbldcInitConf", AmcbldcInitConf); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions
2
boards/amcfoc/resources/project/CzFQ_8sNt_AbTj6BzmOIj1BOHB8/CHiPgsIxDBlo3a20coVYgIscV24d.xml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
boards/amcfoc/resources/project/CzFQ_8sNt_AbTj6BzmOIj1BOHB8/Og8qzt4f3RAdhjNNkA3yMOcLwBwd.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
boards/amcfoc/resources/project/CzFQ_8sNt_AbTj6BzmOIj1BOHB8/Og8qzt4f3RAdhjNNkA3yMOcLwBwp.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
boards/amcfoc/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/pmYrm9Plbv7dHWjvLPRdu-rMB9cd.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
boards/amcfoc/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/pmYrm9Plbv7dHWjvLPRdu-rMB9cp.xml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
boards/amcfoc/resources/project/IDhMnXn6J-Ju2wh1nEFVZKhX41U/G9LCfchVAXZgISvYkgBpiSu13egd.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
boards/amcfoc/resources/project/IDhMnXn6J-Ju2wh1nEFVZKhX41U/G9LCfchVAXZgISvYkgBpiSu13egp.xml
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
boards/amcfoc/resources/project/VM3O54iUyQ_56n4j9ErwhKHCP2A/cbWE6esvTcqHfk7VZK7A_cC3Udcd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Info/> |
2 changes: 1 addition & 1 deletion
2
...Ij1BOHB8/CHiPgsIxDBlo3a20coVYgIscV24p.xml → ...whKHCP2A/cbWE6esvTcqHfk7VZK7A_cC3Udcp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Info location="1" type="DIR_SIGNIFIER"/> |
6 changes: 0 additions & 6 deletions
6
boards/amcfoc/resources/project/hLMKfvmMZYFbdoE4Xco7ryXas6s/CzFQ_8sNt_AbTj6BzmOIj1BOHB8d.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
boards/amcfoc/resources/project/hLMKfvmMZYFbdoE4Xco7ryXas6s/CzFQ_8sNt_AbTj6BzmOIj1BOHB8p.xml
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
boards/amcfoc/resources/project/hLMKfvmMZYFbdoE4Xco7ryXas6s/VM3O54iUyQ_56n4j9ErwhKHCP2Ad.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Info/> |
2 changes: 2 additions & 0 deletions
2
boards/amcfoc/resources/project/hLMKfvmMZYFbdoE4Xco7ryXas6s/VM3O54iUyQ_56n4j9ErwhKHCP2Ap.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Info location="supervision" type="File"/> |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.