Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
56struct 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
71extern void doublet_init(struct doublet_t *doublet, float length_s,
72 float extra_waiting_time_s, float current_time_s, uint8_t mod3211);
73
74extern void doublet_reset(struct doublet_t *doublet, float current_time_s);
75
76extern bool doublet_is_running(struct doublet_t *doublet, float current_time_s);
77
78extern float doublet_update(struct doublet_t *doublet, float current_time_s);
79
80#endif //PPRZ_DOUBLET_H
uint16_t foo
Definition main_demo5.c:58
float total_length_s
void doublet_init(struct doublet_t *doublet, float length_s, float extra_waiting_time_s, float current_time_s, uint8_t mod3211)
bool doublet_is_running(struct doublet_t *doublet, float current_time_s)
uint8_t mod
void doublet_reset(struct doublet_t *doublet, float current_time_s)
float current_value
float current_time_s
float doublet_update(struct doublet_t *doublet, float current_time_s)
Initialize with doublet_init.
static struct doublet_t doublet
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.