2012-08-04 19:12:36 -03:00
|
|
|
/*
|
|
|
|
* eye.c
|
|
|
|
*
|
|
|
|
* Code generation for function 'eye'
|
|
|
|
*
|
2012-10-16 06:10:09 -03:00
|
|
|
* C source code generated on: Sat Oct 13 16:28:18 2012
|
2012-08-04 19:12:36 -03:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Include files */
|
|
|
|
#include "rt_nonfinite.h"
|
|
|
|
#include "attitudeKalmanfilter.h"
|
|
|
|
#include "eye.h"
|
|
|
|
|
|
|
|
/* Type Definitions */
|
|
|
|
|
|
|
|
/* Named Constants */
|
|
|
|
|
|
|
|
/* Variable Declarations */
|
|
|
|
|
|
|
|
/* Variable Definitions */
|
|
|
|
|
|
|
|
/* Function Declarations */
|
|
|
|
|
|
|
|
/* Function Definitions */
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
2012-10-02 04:23:47 -03:00
|
|
|
void b_eye(real_T I[144])
|
2012-08-04 19:12:36 -03:00
|
|
|
{
|
|
|
|
int32_T i;
|
2012-10-16 06:10:09 -03:00
|
|
|
memset(&I[0], 0, 144U * sizeof(real_T));
|
2012-10-02 04:23:47 -03:00
|
|
|
for (i = 0; i < 12; i++) {
|
|
|
|
I[i + 12 * i] = 1.0;
|
2012-08-04 19:12:36 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void eye(real_T I[9])
|
|
|
|
{
|
|
|
|
int32_T i;
|
2012-10-16 06:10:09 -03:00
|
|
|
memset(&I[0], 0, 9U * sizeof(real_T));
|
2012-08-04 19:12:36 -03:00
|
|
|
for (i = 0; i < 3; i++) {
|
|
|
|
I[i + 3 * i] = 1.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* End of code generation (eye.c) */
|