1
0
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:
Oleg Semyonov 2013-03-17 13:17:48 +02:00
parent 9bcbcbeb34
commit 49ed34fd7b
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 ****************
// *************************************************