Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
pprz_doublet.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) Alessandro Collicelli
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 */
45 #ifndef PPRZ_DOUBLET_H
46 #define PPRZ_DOUBLET_H
47 
48 
49 
50 #include "std.h"
51 
56 struct doublet_t{
57  float t0;
58  float t1;
59  float t2;
60  float t3;
61  float t4;
62  float t5;
63  float tf;
67 
69 };
70 
71 extern void doublet_init(struct doublet_t *doublet, float length_s,
72  float extra_waiting_time_s, float current_time_s, uint8_t mod3211);
73 
74 extern void doublet_reset(struct doublet_t *doublet, float current_time_s);
75 
76 extern bool doublet_is_running(struct doublet_t *doublet, float current_time_s);
77 
78 extern float doublet_update(struct doublet_t *doublet, float current_time_s);
79 
80 #endif //PPRZ_DOUBLET_H
float t2
Definition: pprz_doublet.h:59
float total_length_s
Definition: pprz_doublet.h:64
void doublet_init(struct doublet_t *doublet, float length_s, float extra_waiting_time_s, float current_time_s, uint8_t mod3211)
Definition: pprz_doublet.c:31
float tf
Definition: pprz_doublet.h:63
float t5
Definition: pprz_doublet.h:62
bool doublet_is_running(struct doublet_t *doublet, float current_time_s)
Definition: pprz_doublet.c:67
uint8_t mod
Definition: pprz_doublet.h:68
float t4
Definition: pprz_doublet.h:61
float t3
Definition: pprz_doublet.h:60
void doublet_reset(struct doublet_t *doublet, float current_time_s)
Definition: pprz_doublet.c:61
float current_value
Definition: pprz_doublet.h:65
float t1
Definition: pprz_doublet.h:58
float t0
Definition: pprz_doublet.h:57
float current_time_s
Definition: pprz_doublet.h:66
float doublet_update(struct doublet_t *doublet, float current_time_s)
Definition: pprz_doublet.c:72
Initialize with doublet_init.
Definition: pprz_doublet.h:56
static struct doublet_t doublet
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98