/* * Arduino_skal_data.cpp * * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * Code generation for model "Arduino_skal". * * Model version : 1.1 * Simulink Coder version : 9.5 (R2021a) 14-Nov-2020 * C++ source code generated on : Thu Apr 15 15:56:50 2021 * * Target selection: grt.tlc * Note: GRT includes extra infrastructure and instrumentation for prototyping * Embedded hardware selection: Intel->x86-64 (Windows64) * Code generation objective: Debugging * Validation result: Not run */ #include "Arduino_skal.h" #include "Arduino_skal_private.h" /* Block parameters (default storage) */ P_Arduino_skal_T Arduino_skalModelClass::Arduino_skal_P = { /* Variable: K * Referenced by: '/Gain' */ { -31.622776601683942, -21.286439360075747, 80.789376267003959, 13.42463576551093 }, /* Variable: Kr * Referenced by: '/Kr' */ 1.0, /* Expression: 0 * Referenced by: '/L*(y[k]-yhat[k|k-1])' */ 0.0, /* Expression: [1,1] * Referenced by: '/Constant' */ { 1.0, 1.0 }, /* Expression: pInitialization.X0 * Referenced by: '/X0' */ { 0.0, 0.0, 0.0, 0.0 }, /* Expression: pInitialization.A * Referenced by: '/A' */ { 0.0, 0.0, 0.0, 0.0, 1.0, -0.20780947085442231, 0.0, -0.52810302415000854, 0.0, 13.239785742831822, 0.0, 58.601480177829842, 0.0, 0.0, 1.0, 0.0 }, /* Expression: pInitialization.B * Referenced by: '/B' */ { 0.0, 2.078094708544223, 0.0, 5.2810302415000852 }, /* Expression: pInitialization.C * Referenced by: '/C' */ { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0 }, /* Expression: pInitialization.Z * Referenced by: '/CovarianceZ' */ { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }, /* Expression: pInitialization.L * Referenced by: '/KalmanGainL' */ { 2.829363352293504, 6.8371369304528766, 2.3809613355962305, 17.882971156218495, 2.3809613355962278, 24.153756408336502, 14.825995823889082, 112.73956452579047 }, /* Expression: pInitialization.D * Referenced by: '/D' */ { 0.0, 0.0 }, /* Expression: 0 * Referenced by: '/Step' */ 0.0, /* Expression: 0 * Referenced by: '/Step' */ 0.0, /* Expression: 0 * Referenced by: '/Step' */ 0.0, /* Expression: 11.5 * Referenced by: '/Saturation' */ 11.5, /* Expression: -11.5 * Referenced by: '/Saturation' */ -11.5, /* Expression: pInitialization.isSqrtUsed * Referenced by: '/isSqrtUsed' */ 0, /* Expression: true() * Referenced by: '/Enable' */ 1 };