dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
VTXConfig.c File Reference

This module configures the video transmitter. More...

#include "openpilot.h"
#include <pios_hal.h>
#include <pios_thread.h>
#include "tbs_smartaudio.h"
#include "vtxsettings.h"
#include "vtxinfo.h"

Go to the source code of this file.

Macros

#define STACK_SIZE_BYTES   560
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define MAX_FAILS   5
 
#define TBS_MIN_BAUD   4600
 
#define TBS_MAX_BAUD   5100
 

Enumerations

enum  VTXTYPE { VTX_NONE, VTX_TBS_SMARTAUDIO }
 
enum  STATE { DISCONNECTED, CONNECTED }
 

Functions

static void vtxConfigTask (void *parameters)
 
int32_t VTXConfigStart (void)
 
int32_t VTXConfigInitialize (void)
 
 MODULE_INITCALL (VTXConfigInitialize, VTXConfigStart)
 

Variables

static const uint16_t BAND_5G8_A_FREQS [VTXSETTINGS_BAND_5G8_A_FREQUENCY_MAXOPTVAL+1]
 
static const uint16_t BAND_5G8_B_FREQS [VTXSETTINGS_BAND_5G8_B_FREQUENCY_MAXOPTVAL+1]
 
static const uint16_t BAND_5G8_E_FREQS [VTXSETTINGS_BAND_5G8_E_FREQUENCY_MAXOPTVAL+1]
 
static const uint16_t AIRWAVE_FREQS [VTXSETTINGS_AIRWAVE_FREQUENCY_MAXOPTVAL+1]
 
static const uint16_t RACEBAND_FREQS [VTXSETTINGS_RACEBAND_FREQUENCY_MAXOPTVAL+1]
 
static const uint16_t VTX_POWER [VTXSETTINGS_POWER_GLOBAL_MAXOPTVAL+1]
 
static uint32_t vtxConfigPort
 
static bool module_enabled = false
 
static volatile bool settings_updated = false
 
static struct pios_thread * vtxConfigTaskHandle
 
static enum VTXTYPE vtx_type = VTX_NONE
 

Detailed Description

This module configures the video transmitter.

Author
dRonin, http://dRonin.org/, Copyright (C) 2016
See Also
The GNU Public License (GPL) Version 3

Definition in file VTXConfig.c.