Skip to content

Commit d3f03c6

Browse files
committed
add cgmres_nmpc test
1 parent a01dc16 commit d3f03c6

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

PathTracking/cgmres_nmpc/cgmres_nmpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,7 @@ def main():
585585

586586
if show_animation:
587587
animation(plant_system, controller, dt)
588-
589-
plot_figures(plant_system, controller, iteration_num, dt)
588+
plot_figures(plant_system, controller, iteration_num, dt)
590589

591590

592591
if __name__ == "__main__":

tests/test_cgmres_nmpc.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from unittest import TestCase
2+
3+
import sys
4+
if 'cvxpy' in sys.modules:
5+
sys.path.append("./PathTracking/cgmres_nmpc/")
6+
7+
from PathTracking.cgmres_nmpc import cgmres_nmpc as m
8+
9+
print(__file__)
10+
11+
class Test(TestCase):
12+
13+
def test1(self):
14+
m.show_animation = False
15+
m.main()

0 commit comments

Comments
 (0)