#include <simgear/compiler.h>
#include <errno.h>
#include <cmath>
#include <cstdio>
#include <string>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/props/props_io.hxx>
#include <Main/fg_props.hxx>
#include "ATC-Inputs.hxx"
Go to the source code of this file.
|
| static void | ATCReadAnalogInputs (int fd, unsigned char *analog_in_bytes) |
| |
| static void | ATCReadRadios (int fd, unsigned char *switch_data) |
| |
| static void | ATCReadSwitches (int fd, unsigned char *switch_bytes) |
| |
| static double | scale (int center, int deadband, int min, int max, int value) |
| |
| static double | scale (int min, int max, int value) |
| |
| static double | clamp (double min, double max, double value) |
| |
| static int | tony_magic (int raw, int obs[3]) |
| |
| static double | instr_pot_filter (double ave, double val) |
| |
| static void | update_switch_matrix (int board, unsigned char switch_data[16], int switch_matrix[2][8][16]) |
| |
◆ ATCReadAnalogInputs()
| static void ATCReadAnalogInputs |
( |
int | fd, |
|
|
unsigned char * | analog_in_bytes ) |
|
static |
◆ ATCReadRadios()
| static void ATCReadRadios |
( |
int | fd, |
|
|
unsigned char * | switch_data ) |
|
static |
◆ ATCReadSwitches()
| static void ATCReadSwitches |
( |
int | fd, |
|
|
unsigned char * | switch_bytes ) |
|
static |
◆ clamp()
| static double clamp |
( |
double | min, |
|
|
double | max, |
|
|
double | value ) |
|
static |
◆ instr_pot_filter()
| static double instr_pot_filter |
( |
double | ave, |
|
|
double | val ) |
|
static |
◆ scale() [1/2]
| static double scale |
( |
int | center, |
|
|
int | deadband, |
|
|
int | min, |
|
|
int | max, |
|
|
int | value ) |
|
static |
◆ scale() [2/2]
| static double scale |
( |
int | min, |
|
|
int | max, |
|
|
int | value ) |
|
static |
◆ tony_magic()
| static int tony_magic |
( |
int | raw, |
|
|
int | obs[3] ) |
|
static |
◆ update_switch_matrix()
| static void update_switch_matrix |
( |
int | board, |
|
|
unsigned char | switch_data[16], |
|
|
int | switch_matrix[2][8][16] ) |
|
static |