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
windturbine.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 Martin Mueller
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, write to
18 * the Free Software Foundation, 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 *
21 */
22
30#include "meteo/windturbine.h"
31#include "core/trigger_ext.h"
32#include "modules/gps/gps.h"
33#include "mcu_periph/sys_time.h"
34
35
36#include "mcu_periph/uart.h"
37#include "pprzlink/messages.h"
39
40
59
uint32_t gps_tow_from_sys_ticks(uint32_t sys_ticks)
Convert time in sys_time ticks to GPS time of week.
Definition gps.c:393
Device independent GPS code (interface)
uint16_t foo
Definition main_demo5.c:58
#define TRUE
Definition std.h:4
Architecture independent timing functions.
static uint32_t msec_of_sys_time_ticks(uint32_t ticks)
Definition sys_time.h:167
uint32_t trigger_t0
Definition trigger_ext.c:33
volatile bool trigger_ext_valid
Definition trigger_ext.c:35
uint32_t trigger_delta_t0
Definition trigger_ext.c:34
Measure external trigger pulse at PPM input (default).
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
void windturbine_periodic(void)
Definition windturbine.c:41
This measures a trigger pulse length (e.g.