px4-firmware/apps/attitude_estimator_ekf/codegen/eye.c

52 lines
781 B
C
Raw Normal View History

/*
* eye.c
*
* Code generation for function 'eye'
*
2012-09-21 09:42:57 -03:00
* C source code generated on: Fri Sep 21 13:56:43 2012
*
*/
/* 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-09-19 17:36:41 -03:00
void b_eye(real_T I[81])
{
int32_T i;
2012-09-19 17:36:41 -03:00
memset((void *)&I[0], 0, 81U * sizeof(real_T));
for (i = 0; i < 9; i++) {
I[i + 9 * i] = 1.0;
}
}
/*
*
*/
void eye(real_T I[9])
{
int32_T i;
memset((void *)&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) */