|
38 | 38 | import numpy as np |
39 | 39 | import control |
40 | 40 | from .flatsys import FlatSystem |
41 | | -from ..statesp import LinearIOSystem |
| 41 | +from ..statesp import StateSpace |
42 | 42 |
|
43 | 43 |
|
44 | | -class LinearFlatSystem(FlatSystem, LinearIOSystem): |
| 44 | +class LinearFlatSystem(FlatSystem, StateSpace): |
45 | 45 | """Base class for a linear, differentially flat system. |
46 | 46 |
|
47 | 47 | This class is used to create a differentially flat system representation |
@@ -94,7 +94,7 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, |
94 | 94 | "only single input, single output systems are supported") |
95 | 95 |
|
96 | 96 | # Initialize the object as a LinearIO system |
97 | | - LinearIOSystem.__init__( |
| 97 | + StateSpace.__init__( |
98 | 98 | self, linsys, inputs=inputs, outputs=outputs, states=states, |
99 | 99 | name=name) |
100 | 100 |
|
@@ -143,10 +143,10 @@ def reverse(self, zflag, params): |
143 | 143 |
|
144 | 144 | # Update function |
145 | 145 | def _rhs(self, t, x, u): |
146 | | - # Use LinearIOSystem._rhs instead of default (MRO) NonlinearIOSystem |
147 | | - return LinearIOSystem._rhs(self, t, x, u) |
| 146 | + # Use StateSpace._rhs instead of default (MRO) NonlinearIOSystem |
| 147 | + return StateSpace._rhs(self, t, x, u) |
148 | 148 |
|
149 | 149 | # output function |
150 | 150 | def _out(self, t, x, u): |
151 | | - # Use LinearIOSystem._out instead of default (MRO) NonlinearIOSystem |
152 | | - return LinearIOSystem._out(self, t, x, u) |
| 151 | + # Use StateSpace._out instead of default (MRO) NonlinearIOSystem |
| 152 | + return StateSpace._out(self, t, x, u) |
0 commit comments