- Timestamp:
- 11/02/10 21:20:06 (14 years ago)
- Location:
- library/bdm/design
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/design/arx_ctrl.h
r1064 r1243 60 60 lq.redesign(); 61 61 } 62 vec ctrlaction ( const vec &cond ) const{62 vec ctrlaction ( const vec &cond ) { 63 63 //cond is xt + ut 64 64 vec state = cond.left ( Stsp->_A().rows() ); -
library/bdm/design/ctrlbase.h
r1130 r1243 10 10 ----------------------------------- 11 11 */ 12 13 #ifndef CTRL_BASE 14 #define CTRL_BASE 15 12 16 13 17 #include "../base/bdmbase.h" … … 32 36 virtual void redesign() {}; 33 37 //! returns designed control action 34 virtual vec ctrlaction ( const vec &cond ) const{38 virtual vec ctrlaction ( const vec &cond ) { 35 39 return vec ( 0 ); 36 40 } … … 129 133 130 134 //! compute control action 131 vec ctrlaction ( const vec &state, const vec &ukm ) const{135 vec ctrlaction ( const vec &state, const vec &ukm ) { 132 136 vec pom = concat ( state, ones ( dimy ), ukm ); 133 137 return L*pom; … … 141 145 142 146 } // namespace 147 148 #endif //CTRL_BASE