%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
| 122 | |
| 123 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 124 | bool JSBSimInterface::OpenScript(const SGPath& script, double delta_t, const SGPath& initfile) |
| 125 | { |
| 126 | try { |
| 127 | if (!fdmExec->SetAircraftPath (SGPath("aircraft"))) return false; |
| 128 | if (!fdmExec->SetEnginePath (SGPath("engine"))) return false; |
| 129 | if (!fdmExec->SetSystemsPath (SGPath("systems"))) return false; |
| 130 | |
| 131 | if (!fdmExec->LoadScript(script, delta_t, initfile)) return false; |
| 132 | |
| 133 | if (!fdmExec->RunIC()) return false; |
| 134 | |
| 135 | return true; |
| 136 | } catch (const LogException& e) { |
| 137 | mexPrintf(e.what()); |
| 138 | return false; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 143 | bool JSBSimInterface::LoadIC(SGPath ResetName) |
no test coverage detected