Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
interfaces
matlab
examples
ocp
simplerocket_c
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
}
myAcadoDifferentialEquation
void myAcadoDifferentialEquation(double *x, double *f, void *user_data)
Definition:
simplerocket_c/cfunction.cpp:1
v
#define v
L
#define L
acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:29