Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
hf_float.h File Reference

Horizontal filter (x,y) to estimate position and velocity. More...

#include "std.h"
#include "math/pprz_algebra_float.h"
#include "generated/airframe.h"
+ Include dependency graph for hf_float.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HfilterFloat
 

Macros

#define HFF_STATE_SIZE   2
 

Functions

void b2_hff_init (float init_x, float init_xdot, float init_y, float init_ydot)
 
void b2_hff_propagate (void)
 
void b2_hff_update_gps (struct FloatVect2 *pos_ned, struct FloatVect2 *speed_ned)
 
void b2_hff_update_pos (struct FloatVect2 pos, struct FloatVect2 Rpos)
 
void b2_hff_update_vel (struct FloatVect2 vel, struct FloatVect2 Rvel)
 
void b2_hff_realign (struct FloatVect2 pos, struct FloatVect2 vel)
 

Variables

struct HfilterFloat b2_hff_state
 

Detailed Description

Horizontal filter (x,y) to estimate position and velocity.

Definition in file hf_float.h.


Data Structure Documentation

struct HfilterFloat

Definition at line 38 of file hf_float.h.

Data Fields
uint16_t lag_counter
bool rollback
float x
float xdot
float xdotdot
float xP[HFF_STATE_SIZE][HFF_STATE_SIZE]
float y
float ydot
float ydotdot
float yP[HFF_STATE_SIZE][HFF_STATE_SIZE]

Macro Definition Documentation

#define HFF_STATE_SIZE   2

Definition at line 36 of file hf_float.h.

Referenced by b2_hff_init_x(), and b2_hff_init_y().

Function Documentation

void b2_hff_realign ( struct FloatVect2  pos,
struct FloatVect2  vel 
)

Definition at line 594 of file hf_float.c.

References b2_hff_rb_n, b2_hff_state, past_save_counter, save_counter, SAVE_DONE, HfilterFloat::x, FloatVect2::x, HfilterFloat::xdot, HfilterFloat::y, FloatVect2::y, and HfilterFloat::ydot.

Referenced by ins_int_update_gps().

+ Here is the caller graph for this function:

void b2_hff_update_pos ( struct FloatVect2  pos,
struct FloatVect2  Rpos 
)

Definition at line 685 of file hf_float.c.

References b2_hff_state, b2_hff_update_x(), b2_hff_update_y(), FloatVect2::x, and FloatVect2::y.

+ Here is the call graph for this function:

void b2_hff_update_vel ( struct FloatVect2  vel,
struct FloatVect2  Rvel 
)

Definition at line 757 of file hf_float.c.

References b2_hff_state, b2_hff_update_xdot(), b2_hff_update_ydot(), FloatVect2::x, and FloatVect2::y.

Referenced by vel_est_cb().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation