33 #include "generated/flight_plan.h"
59 ((tar->
h / 2) - tar->
py),
60 (tar->
px - (tar->
w / 2)),
static void h(const real32_T x[7], const real32_T q[4], real32_T y[6])
struct georeference_t geo
void georeference_project(struct camera_frame_t *tar, int wp)
struct Int32Vect3 target_i
Target in pixels, with z being the focal length in pixels, x=up,y=right,out.
void georeference_init(void)
struct georeference_filter_t filter
Filter waypoint location.
void georeference_filter(bool kalman, int wp, int length)
struct Int32Vect3 target_l
Target in meters, relative to the drone in LTP frame.
struct Int32Vect3 x_t
Target coordinates NED.
struct Int32Vect3 x
Target.
int32_t P
Covariance/Average-count.
void georeference_run(void)
struct Int32Vect3 v
Target Velocity.
int32_t px
Target pixel coordinate (left = 0)
int32_t h
Frame height [px].
int32_t py
Target pixel coordinate (top = 0)
int32_t w
Frame width [px].
int32_t f
Camera Focal length in [px].
Common code for AP and FBW telemetry.
#define VECT3_SDIV(_vo, _vi, _s)
#define VECT3_SUB(_a, _b)
#define VECT3_SMUL(_vo, _vi, _s)
#define VECT3_ASSIGN(_a, _x, _y, _z)
#define VECT3_COPY(_a, _b)
#define VECT3_ADD(_a, _b)
#define MAT33_ELMT(_m, _row, _col)
#define INT32_VECT3_LSHIFT(_o, _i, _l)
#define INT32_MAT33_ZERO(_m)
#define INT32_VECT3_ZERO(_v)
void int32_rmat_transp_vmult(struct Int32Vect3 *vb, struct Int32RMat *m_b2a, struct Int32Vect3 *va)
rotate 3D vector by transposed rotation matrix.
vector in North East Down coordinates
static struct Int32RMat * stateGetNedToBodyRMat_i(void)
Get vehicle body attitude rotation matrix (int).
static struct NedCoor_i * stateGetPositionNed_i(void)
Get position in local NED coordinates (int).
void waypoint_set_xy_i(uint8_t wp_id, int32_t x, int32_t y)
Set only local XY coordinates of waypoint without update altitude.
void waypoint_set_alt_i(uint8_t wp_id, int32_t alt)
Paparazzi generic algebra macros.
Paparazzi fixed point algebra.
Paparazzi fixed point trig functions.
API to get/set the generic vehicle states.
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.