mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
insgps: move definition of NavStruct variable from header to source file
This commit is contained in:
parent
9bcbcbeb34
commit
49ed34fd7b
@ -80,7 +80,7 @@ void VelBaroCorrection(float Vel[3], float BaroAlt);
|
||||
uint16_t ins_get_num_states();
|
||||
|
||||
// Nav structure containing current solution
|
||||
struct NavStruct {
|
||||
extern struct NavStruct {
|
||||
float Pos[3]; // Position in meters and relative to a local NED frame
|
||||
float Vel[3]; // Velocity in meters and in NED
|
||||
float q[4]; // unit quaternion rotation relative to NED
|
||||
|
@ -66,6 +66,9 @@ float P[NUMX][NUMX], X[NUMX]; // covariance matrix and state vector
|
||||
float Q[NUMW], R[NUMV]; // input noise and measurement noise variances
|
||||
float K[NUMX][NUMV]; // feedback gain matrix
|
||||
|
||||
// Global variables
|
||||
struct NavStruct Nav;
|
||||
|
||||
// ************* Exposed Functions ****************
|
||||
// *************************************************
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user