aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf/codegen/eye.c
blob: b89ab58ef67145406bf7b53981555eb9a057283a (plain) (blame)
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
/*
 * eye.c
 *
 * Code generation for function 'eye'
 *
 * C source code generated on: Sat Jan 19 15:25:29 2013
 *
 */

/* Include files */
#include "rt_nonfinite.h"
#include "attitudeKalmanfilter.h"
#include "eye.h"

/* Type Definitions */

/* Named Constants */

/* Variable Declarations */

/* Variable Definitions */

/* Function Declarations */

/* Function Definitions */

/*
 *
 */
void b_eye(real_T I[144])
{
  int32_T i;
  memset(&I[0], 0, 144U * sizeof(real_T));
  for (i = 0; i < 12; i++) {
    I[i + 12 * i] = 1.0;
  }
}

/*
 *
 */
void eye(real_T I[9])
{
  int32_T i;
  memset(&I[0], 0, 9U * sizeof(real_T));
  for (i = 0; i < 3; i++) {
    I[i + 3 * i] = 1.0;
  }
}

/* End of code generation (eye.c) */