Beispiel #1
0
	def dss(self, Ts, method="ZOH"):
		"""
		@summary: Convert the continuous model to the discrete model 
		
		@param Ts: Sampling time 
		@param method: The name of discretization method 
		
		@return: The discretized state-space model
		"""
		from tools.tools import c2d
		self.css();
		return c2d((self.A, self.B, self.C, self.D), Ts, method);
Beispiel #2
0
    def dss(self, Ts, method="ZOH"):
        """
		@summary: Convert the continuous model to the discrete model 
		
		@param Ts: Sampling time 
		@param method: The name of discretization method 
		
		@return: The discretized state-space matrix
		"""
        from tools.tools import c2d
        self.css()
        return c2d((self.A, self.B, self.C, self.D), Ts, method)