Changeset 287 for doc/html/pmsm_8h-source.html
- Timestamp:
- 03/05/09 14:03:56 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/pmsm_8h-source.html
r280 r287 83 83 <a name="l00031"></a><a class="code" href="classIMpmsm.html#45785869d978dda42828a072ec2caebe">00031</a> vec <a class="code" href="classIMpmsm.html#45785869d978dda42828a072ec2caebe" title="Evaluates .">eval</a> ( <span class="keyword">const</span> vec &x0, <span class="keyword">const</span> vec &u0 ) { 84 84 <a name="l00032"></a>00032 <span class="comment">// last state</span> 85 <a name="l00033"></a>00033 <span class="keyword type">double</span>iam = x0 ( 0 );86 <a name="l00034"></a>00034 <span class="keyword type">double</span>ibm = x0 ( 1 );87 <a name="l00035"></a>00035 <span class="keyword type">double</span>omm = x0 ( 2 );88 <a name="l00036"></a>00036 <span class="keyword type">double</span>thm = x0 ( 3 );89 <a name="l00037"></a>00037 <span class="keyword type">double</span>uam = u0 ( 0 );90 <a name="l00038"></a>00038 <span class="keyword type">double</span>ubm = u0 ( 1 );85 <a name="l00033"></a>00033 <span class="keyword">const</span> <span class="keywordtype">double</span> &iam = x0 ( 0 ); 86 <a name="l00034"></a>00034 <span class="keyword">const</span> <span class="keywordtype">double</span> &ibm = x0 ( 1 ); 87 <a name="l00035"></a>00035 <span class="keyword">const</span> <span class="keywordtype">double</span> &omm = x0 ( 2 ); 88 <a name="l00036"></a>00036 <span class="keyword">const</span> <span class="keywordtype">double</span> &thm = x0 ( 3 ); 89 <a name="l00037"></a>00037 <span class="keyword">const</span> <span class="keywordtype">double</span> &uam = u0 ( 0 ); 90 <a name="l00038"></a>00038 <span class="keyword">const</span> <span class="keywordtype">double</span> &ubm = u0 ( 1 ); 91 91 <a name="l00039"></a>00039 92 <a name="l00040"></a>00040 vec xk =zeros( 4 );92 <a name="l00040"></a>00040 vec xk( 4 ); 93 93 <a name="l00041"></a>00041 <span class="comment">//ia</span> 94 94 <a name="l00042"></a>00042 xk ( 0 ) = ( 1.0- Rs/Ls*dt ) * iam + Ypm/Ls*dt*omm * sin ( thm ) + uam*dt/Ls; … … 105 105 <a name="l00053"></a>00053 106 106 <a name="l00054"></a><a class="code" href="classIMpmsm.html#b4378b5d3bf64c683e4cf5c5f1cd56f1">00054</a> <span class="keywordtype">void</span> <a class="code" href="classIMpmsm.html#b4378b5d3bf64c683e4cf5c5f1cd56f1" title="Evaluates and writes result into A .">dfdx_cond</a> ( <span class="keyword">const</span> vec &x0, <span class="keyword">const</span> vec &u0, mat &A, <span class="keywordtype">bool</span> full=<span class="keyword">true</span> ) { 107 <a name="l00055"></a>00055 <span class="keyword type">double</span>iam = x0 ( 0 );108 <a name="l00056"></a>00056 <span class="keyword type">double</span>ibm = x0 ( 1 );109 <a name="l00057"></a>00057 <span class="keyword type">double</span>omm = x0 ( 2 );110 <a name="l00058"></a>00058 <span class="keyword type">double</span>thm = x0 ( 3 );107 <a name="l00055"></a>00055 <span class="keyword">const</span> <span class="keywordtype">double</span> &iam = x0 ( 0 ); 108 <a name="l00056"></a>00056 <span class="keyword">const</span> <span class="keywordtype">double</span> &ibm = x0 ( 1 ); 109 <a name="l00057"></a>00057 <span class="keyword">const</span> <span class="keywordtype">double</span> &omm = x0 ( 2 ); 110 <a name="l00058"></a>00058 <span class="keyword">const</span> <span class="keywordtype">double</span> &thm = x0 ( 3 ); 111 111 <a name="l00059"></a>00059 <span class="comment">// d ia</span> 112 112 <a name="l00060"></a>00060 A ( 0,0 ) = ( 1.0- Rs/Ls*dt ); A ( 0,1 ) = 0.0; … … 271 271 <a name="l00228"></a>00228 <span class="preprocessor">#endif //PMSM_H</span> 272 272 </pre></div></div> 273 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 18 17:38:41 2009 for mixpp by 273 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 4 18:50:11 2009 for mixpp by 274 274 <a href="http://www.doxygen.org/index.html"> 275 275 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>