Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
uwb_positioning.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Gautier Hattenberger <gautier.hattenberger@enac.fr>
3 *
4 * This file is part of paparazzi
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
26#pragma once
27
28#include "std.h"
29
31extern bool uwb_positioning_use_ekf;
32
34extern float uwb_positioning_ekf_q;
38extern void uwb_positioning_update_ekf_q(float v);
39extern void uwb_positioning_update_ekf_r_dist(float v);
40extern void uwb_positioning_update_ekf_r_speed(float v);
41
42extern void uwb_positioning_init(void);
43extern void uwb_positioning_periodic(void);
44extern void uwb_positioning_range_periodic(void);
45extern void uwb_positioning_report(void);
46
50extern void uwb_positioning_reset_heading_ref(void);
51
52// when used as a GPS
53#ifndef PRIMARY_GPS
54#define PRIMARY_GPS GPS_UWB
55#endif
56
57void uwb_range(uint16_t id);
void uwb_positioning_report(void)
void uwb_positioning_update_ekf_q(float v)
settings handler
void uwb_positioning_update_ekf_r_dist(float v)
bool uwb_positioning_use_ekf
enable EKF filtering
void uwb_positioning_init(void)
void uwb_positioning_update_ekf_r_speed(float v)
float uwb_positioning_ekf_r_speed
void uwb_positioning_reset_heading_ref(void)
Reset reference heading to current heading AHRS/INS should be aligned before calling this function.
void uwb_positioning_range_periodic(void)
float uwb_positioning_ekf_r_dist
void uwb_range(uint16_t id)
Weak empty implementation.
Definition pdec.c:433
float uwb_positioning_ekf_q
process and measurements noise
void uwb_positioning_periodic(void)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.