i keep geting this error Unable to resolve the name 'looptuneGoal.StepTracking'. Error in PID (line 18) TR = looptuneGoal.StepTracking(RefSignals, Measurements, 0.05, 0);
조회 수: 1 (최근 30일)
이전 댓글 표시
TunedBlocks = {'PD1', 'PD2'};
ST0 = slTuner('DOF2_PD', TunedBlocks);
addPoint(ST0, TunedBlocks);
addPoint(ST0, 'robot/qm');
RefSignals = {'DOF2_PD/Signal Builder/q1', 'DOF2_PD/Signal Builder/q2'};
addPoint(ST0, RefSignals);
Controls = TunedBlocks;
Measurements = 'DOF2_PD/robot/qm';
options = looptuneOptions('RandomStart', 80, 'UseParallel', false);
TR = looptuneGoal.StepTracking(RefSignals, Measurements, 0.05, 0);
ST1 = looptune(ST0, Controls, Measurements, TR, options);
writeBlockValue(ST1);
댓글 수: 0
답변 (1개)
R
2024년 4월 19일
Hi,
I understand that you want to pass Design Goals, i.e., a TuningGoal object, into the "looptune" function. To create this TuningGoal object, you can use the "TuningGoal.StepTracking" function. Below are the changes you can make to your code to resolve the error:
TR = TuningGoal.StepTracking(RefSignals, Measurements, 0.05, 0);
ST1 = looptune(ST0, Controls, Measurements, TR, options);
Refer to the following documentations to understand about the "TuningGoal.StepTracking" function and other Tuning Goals supported by MATLAB:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!