Add timestep function
This commit is contained in:
parent
8904c223cb
commit
c0f37a5166
5 changed files with 118 additions and 1 deletions
16
cixdof/integration.h
Normal file
16
cixdof/integration.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef INTEGRATION_H
|
||||
#define INTEGRATION_H
|
||||
|
||||
#include "drone.h"
|
||||
|
||||
struct State {
|
||||
struct Vec3 x_o2cg_inertial;
|
||||
struct Vec3 v_cg_inertial;
|
||||
struct Quat q_inertial2body;
|
||||
struct Vec3 omega;
|
||||
};
|
||||
|
||||
void timestep(double dt, struct QuadCopter *const quad, int nprop,
|
||||
struct Propeller *const p, struct State *s);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue