16 lines
330 B
C
16 lines
330 B
C
#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
|