simplerocket_c/cfunction.cpp
Go to the documentation of this file.
1 void myAcadoDifferentialEquation( double *x, double *f, void *user_data ){
2 
3  // x[0] -> time t
4  // x[1] -> v
5  // x[2] -> s
6  // x[3] -> m
7  // x[4] -> L
8  // x[5] -> u
9 
10  double t = x[0];
11  double v = x[1];
12  double s = x[2];
13  double m = x[3];
14  double L = x[4];
15  double u = x[5];
16 
17  f[0] = (u-0.02*v*v)/(m); //dot(v)
18  f[1] = v; //dot(s)
19  f[2] = -0.01*u*u; //dot(m)
20  f[3] = u*u; //dot(L)
21 
22 }
void myAcadoDifferentialEquation(double *x, double *f, void *user_data)
#define v
#define L


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:29