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
radio_control.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2006-2014 The Paparazzi Team
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 */
20
29#include "led.h"
30
31//PRINT_CONFIG_VAR(RADIO_CONTROL_NB_CHANNEL)
32
34
35#if PERIODIC_TELEMETRY
37
38static void send_rc(struct transport_tx *trans, struct link_device *dev)
39{
41}
42#endif
43
61
63{
64 static uint8_t _1Hz;
65 _1Hz++;
66
67 if (_1Hz >= 60) {
68 _1Hz = 0;
71 }
72
75 } else {
79 }
81 }
82
83#if defined(RADIO_CONTROL_LED)
84 if (radio_control.status == RC_OK) {
86 } else {
88 }
89#endif
90
91}
#define RADIO_CONTROL_NB_CHANNEL
#define LED_ON(i)
Definition led_hw.h:51
#define LED_OFF(i)
Definition led_hw.h:52
arch independent LED (Light Emitting Diodes) API
uint16_t foo
Definition main_demo5.c:58
void radio_control_periodic_task(void)
struct RadioControl radio_control
static void send_rc(struct transport_tx *trans, struct link_device *dev)
void radio_control_init(void)
Generic interface for radio control modules.
uint8_t time_since_last_frame
#define RC_OK_CPT
#define RC_LOST_TIME
#define RC_REALLY_LOST
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
uint8_t radio_ok_cpt
uint8_t frame_rate
uint8_t frame_cpt
#define RC_REALLY_LOST_TIME
#define RC_OK
uint8_t nb_channel
#define RC_LOST
static const struct usb_device_descriptor dev
Definition usb_ser_hw.c:74
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Definition telemetry.c:51
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
Definition telemetry.h:66
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.