@@ -182,22 +182,23 @@ def plant(self, request):
182
182
@pytest .mark .parametrize ('Kp0' , (0 ,))
183
183
@pytest .mark .parametrize ('Ki0' , (1. ,))
184
184
@pytest .mark .parametrize ('Kd0' , (0.1 ,))
185
+ @pytest .mark .parametrize ('deltaK' , (1. ,))
185
186
@pytest .mark .parametrize ('tau' , (0.01 ,))
186
187
@pytest .mark .parametrize ('C_ff' , (0 , 1 ,))
187
188
@pytest .mark .parametrize ('derivative_in_feedback_path' , (True , False ,))
188
189
@pytest .mark .parametrize ("kwargs" , [{'plot' :False },])
189
- def test_pid_designer_1 (self , plant , gain , sign , input_signal , Kp0 , Ki0 , Kd0 , tau , C_ff ,
190
+ def test_pid_designer_1 (self , plant , gain , sign , input_signal , Kp0 , Ki0 , Kd0 , deltaK , tau , C_ff ,
190
191
derivative_in_feedback_path , kwargs ):
191
- rootlocus_pid_designer (plant , gain , sign , input_signal , Kp0 , Ki0 , Kd0 , tau , C_ff ,
192
+ rootlocus_pid_designer (plant , gain , sign , input_signal , Kp0 , Ki0 , Kd0 , deltaK , tau , C_ff ,
192
193
derivative_in_feedback_path , ** kwargs )
193
194
194
195
# test creation of sisotool plot
195
196
# input from reference or disturbance
196
- @pytest .mark .skip ("Bode plot is incorrect; generates spurious warnings" )
197
197
@pytest .mark .parametrize ('plant' , ('syscont' , 'syscont221' ), indirect = True )
198
198
@pytest .mark .parametrize ("kwargs" , [
199
199
{'input_signal' :'r' , 'Kp0' :0.01 , 'derivative_in_feedback_path' :True },
200
- {'input_signal' :'d' , 'Kp0' :0.01 , 'derivative_in_feedback_path' :True },])
200
+ {'input_signal' :'d' , 'Kp0' :0.01 , 'derivative_in_feedback_path' :True },
201
+ {'input_signal' :'r' , 'Kd0' :0.01 , 'derivative_in_feedback_path' :True }])
201
202
def test_pid_designer_2 (self , plant , kwargs ):
202
203
rootlocus_pid_designer (plant , ** kwargs )
203
204
0 commit comments