Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bug in the way dir=-1 arrows are handled at endpoint
  • Loading branch information
murrayrm committed Jun 8, 2024
commit 57e3e4efc8e1c7c676a642dc484352fc6b67a0ea
1 change: 0 additions & 1 deletion control/freqplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,6 @@ def _add_arrows_to_line2D(

elif dir == -1:
# Orient the arrow in the other direction on the segment
n = s.size - 2 if n == s.size - 1 else n # move backward at end
arrow_tail = (x[n + 1], y[n + 1])
arrow_head = (np.mean(x[n:n + 2]), np.mean(y[n:n + 2]))

Expand Down
4 changes: 1 addition & 3 deletions examples/pvtol-nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
Hi = ct.parallel(ct.feedback(Ci, Pi), -m * g *ct.feedback(Ci * Pi, 1))

plt.figure(4)
plt.clf()
plt.subplot(221)
ct.bode_plot(Hi)

# Now design the lateral control system
Expand Down Expand Up @@ -129,7 +127,7 @@
#
plt.figure(7)
plt.clf()
ct.nyquist_plot(L, (0.0001, 1000))
ct.nyquist_plot(L)

# Add a box in the region we are going to expand
plt.plot([-2, -2, 1, 1, -2], [-4, 4, 4, -4, -4], 'r-')
Expand Down