gmt_mount-ctrl_controller 1.1.0

Giant Magellan Telescope C-code control system models
Documentation
/*
 * File: Mount_Control_data.c
 *
 * Code generated for Simulink model 'Mount_Control'.
 *
 * Model version                  : 9.53
 * Simulink Coder version         : 9.8 (R2022b) 13-May-2022
 * C/C++ source code generated on : Fri Jun  2 13:39:09 2023
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Linux 64)
 * Code generation objective: Execution efficiency
 * Validation result: All passed
 */

#include "Mount_Control.h"

/* Constant parameters (default storage) */
const ConstP_Mount_Control_T Mount_Control_ConstP = {
  /* Expression: blkdiag(1/4*ones(1,4),1/6*ones(1,6),1/4*ones(1,4))
   * Referenced by: '<S1>/Drv_Pos_avg'
   */
  { 0.25, 0.0, 0.0, 0.25, 0.0, 0.0, 0.25, 0.0, 0.0, 0.25, 0.0, 0.0, 0.0,
    0.16666666666666666, 0.0, 0.0, 0.16666666666666666, 0.0, 0.0,
    0.16666666666666666, 0.0, 0.0, 0.16666666666666666, 0.0, 0.0,
    0.16666666666666666, 0.0, 0.0, 0.16666666666666666, 0.0, 0.0, 0.0, 0.25, 0.0,
    0.0, 0.25, 0.0, 0.0, 0.25, 0.0, 0.0, 0.25 },

  /* Computed Parameter: AZFBcontroller_A
   * Referenced by: '<S1>/AZ FB controller'
   */
  { 0.99999999999999978, 0.69473330077268569, 0.56065046252117268,
    0.16745428544248819, -0.020089919136337314, 0.019362645877874729,
    0.047064804065036048, -0.56065046252086848, 0.029726615799438222,
    0.31487936699793984, -0.035943209266960457, 0.035472808195760014,
    0.087017622639418007, -0.16745428544263236, 0.31487936699786256,
    0.77477993258794342, 0.23036869982764868, -0.043489824691945789,
    -0.056607943264875678, -0.020089919136352219, 0.035943209266951437,
    -0.23036869982764915, 0.96278243812619968, 0.01155868771443791,
    0.035821125937591236, 0.019362645877888704, -0.035472808195749224,
    0.043489824691944748, 0.011558687714434676, 0.9855505709560306,
    -0.14867599726822928, -0.047064804065075683, 0.087017622639397,
    -0.0566079432648764, -0.035821125937591514, 0.14867599726822728,
    0.962778513674166 },

  /* Computed Parameter: AZFBcontroller_C
   * Referenced by: '<S1>/AZ FB controller'
   */
  { -2888.0281607257189, -140463.33854755602, 255831.97878323394,
    -110648.88112334503, -23985.455482685669, 2383.4162008049025,
    -19954.601912281432 },

  /* Computed Parameter: ELFBcontroller_A
   * Referenced by: '<S1>/EL FB controller'
   */
  { 1.0, 0.65496918541435867, -0.60074950581241271, 0.13468738925063448,
    0.040821429497078073, -0.025372034031179644, -0.0075488245697775827,
    -0.012376316165354093, 0.0065926614588878623, -0.023930602524424093,
    -0.013750059825748225, -0.0026862512302864242, -0.0057634188930479188,
    0.60074950581240982, 0.081119943645124093, -0.4072369041837362,
    -0.05357094061503951, 0.055802598173376294, 0.011455842038014872,
    0.020953028895133813, -0.0129891384486882, 0.042299890776905325,
    0.028994816531085588, 0.0051692820789191463, 0.010703940742989236,
    -0.13468738925063642, -0.40723690418373476, 0.56163576779800273,
    -0.29910849902440934, 0.064110866352819429, 0.037949580844117814,
    0.05189715314304981, -0.020634535625646048, 0.091954912151505669,
    0.035607203331308325, 0.0085678773647251179, 0.019734205042678334,
    0.040821429497080383, 0.053570940615036949, 0.29910849902440656,
    0.889227987574227, 0.15185438841226961, 0.0095778719661372379,
    0.02399587064370267, -0.020500443419291827, 0.051202098869228781,
    0.048941101404242411, 0.0069726468051134671, 0.013354580033805954,
    0.025372034031180064, 0.055802598173375316, 0.064110866352817666,
    -0.15185438841226997, 0.94856715803054592, -0.13380619192940008,
    -0.0685033206198716, 0.013180873405420705, -0.08656428114074402,
    -0.0084258480396454082, -0.004599776436226422, -0.012353575606637137,
    -0.007548824569776554, -0.011455842038015265, -0.03794958084411882,
    0.0095778719661355916, 0.1338061919294, 0.98588593225412213,
    -0.012707538317002906, 0.012567166756875373, -0.023211738131960653,
    -0.027023290354756351, -0.0028963377189311452, -0.0051780636619747078,
    -0.012376316165353569, -0.020953028895133417, -0.051897153143050462,
    0.023995870643702257, 0.068503320619871841, -0.012707538317002777,
    0.98343520015813246, 0.0456849445982356, -0.033704284996745444,
    -0.0726080568908291, -0.0049354903301892152, -0.0074992982115931152,
    -0.0065926614588874321, -0.01298913844869151, -0.020634535625651554,
    0.020500443419293204, 0.013180873405424592, -0.012567166756876922,
    -0.045684944598237257, 0.97958005464415421, 0.18239633750775136,
    -0.026255328526819052, 0.00068633358440620173, 0.0037500549253366195,
    -0.023930602524424312, -0.04229989077690581, -0.091954912151505461,
    0.051202098869227712, 0.086564281140744853, -0.023211738131960591,
    -0.033704284996745715, -0.18239633750775425, 0.86516809169509468,
    -0.36437621459928343, -0.011173392615441369, -0.013641528018767612,
    0.013750059825750111, 0.028994816531084544, 0.0356072033313056,
    -0.048941101404242043, -0.0084258480396440516, 0.027023290354757756,
    0.072608056890829359, -0.026255328526808536, 0.36437621459928504,
    0.88949504187353923, -0.011055880308045607, -0.03159397296366373,
    0.0026862512302849237, 0.0051692820789200136, 0.0085678773647255083,
    -0.0069726468051145712, -0.0045997764362252225, 0.002896337718931951,
    0.0049354903301907366, 0.00068633358440695069, 0.011173392615441459,
    -0.011055880308043609, 0.99534714876920738, -0.062784971825117442,
    -0.0057634188930488451, -0.010703940742991025, -0.019734205042678171,
    0.013354580033804575, 0.012353575606636996, -0.0051780636619755405,
    -0.0074992982115924534, -0.0037500549253367543, -0.013641528018766252,
    0.031593972963663841, 0.06278497182511783, 0.97995053094494577 },

  /* Computed Parameter: ELFBcontroller_C
   * Referenced by: '<S1>/EL FB controller'
   */
  { -11339.118049356122, 158958.407864214, 207613.02018133955,
    94563.612178621363, -13922.840975504578, -8312.8434290332189,
    1398.109600464406, 614.70518367987825, 1081.3507908089377,
    -213.98780147377011, -3742.8506721860358, -355.1089257425192,
    -463.1830445973319 },

  /* Computed Parameter: GIRFBcontroller_A
   * Referenced by: '<S1>/GIR FB controller'
   */
  { 1.0, 0.72275751252276, 0.57588065182005521, 0.10905347694037149,
    0.023196681481862158, -0.067778038308505373, -0.0019953453507656205,
    -0.5758806518200672, 0.2093553848114888, 0.37076601528712183,
    0.029709899848121887, -0.13815185534905192, -0.0019670608258781641,
    -0.10905347694036371, 0.37076601528712716, 0.69611392392210369,
    -0.20742055881452448, 0.12066800276111805, 0.0072506107711204359,
    0.023196681481860437, -0.029709899848123271, 0.20742055881452565,
    0.969378396962444, 0.03421938175511835, -0.00024647898174099542,
    0.067778038308502556, -0.13815185534905286, 0.12066800276111758,
    -0.034219381755118863, 0.81152904838496953, -0.43410968297494318,
    -0.0019953453507651764, 0.0019670608258781294, -0.007250610771120658,
    -0.00024647898174110644, 0.43410968297494357, 0.89035433181012935 },

  /* Computed Parameter: GIRFBcontroller_C
   * Referenced by: '<S1>/GIR FB controller'
   */
  { -652.242698370315, 17028.864555103337, -31350.698316730435,
    22397.605203121435, -4262.3175327026283, -3887.2197360677746,
    1086.8945536880692 }
};

/*
 * File trailer for generated code.
 *
 * [EOF]
 */