Overview
Comment: | Rates and outputs now update correctly. Debugging print statements removed. 'mtt rc sfun mexglx' creates a valid S-function "rc_sfun.mexglx" which runs correctly in Simulink. Algebraic solver code has not yet been added. Inertial switches still don't work. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a9fd8a87b9738fc159cd3052a004f5fc |
User & Date: | geraint@users.sourceforge.net on 2002-05-10 15:50:53 |
Other Links: | branch diff | manifest | tags |
Context
2002-05-11
| ||
00:53:27 | reinstated dependency on libncurses5-dev - liboctinterp needs it. check-in: 0c34112393 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-05-10
| ||
15:50:53 |
Rates and outputs now update correctly. Debugging print statements removed. 'mtt rc sfun mexglx' creates a valid S-function "rc_sfun.mexglx" which runs correctly in Simulink. Algebraic solver code has not yet been added. Inertial switches still don't work. check-in: a9fd8a87b9 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
15:18:29 |
static mxArrays and void update_ functions replace mxArray* get_ functions. Rates still don't update, but simulation doesn't crash now. check-in: a6899b8f34 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/rep/sfun_rep/sfun.cc.tmpl from [012442f825] to [f8062baaba].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | - - - - - - - - - - - - - - - | // -*-c++-*- // <mtt_model_name>_sfun.cc: // Matlab S-function simulation of <mtt_model_name> #define S_FUNCTION_NAME <mtt_model_name>_sfun #define S_FUNCTION_LEVEL 2 #include "simstruc.h" |
︙ | |||
114 115 116 117 118 119 120 | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | - - - - + - - - - + - + - - - | update_parameters_from_simulink (S); plhs[0] = X; prhs[0] = P; mexCallMATLAB (1, plhs, 1, prhs, "<mtt_model_name>_state"); |