TwiceAsNice
2019-02-18
|
#include "indi_radiosim_detector.h"
#include "hires.h"
#include <math.h>
#include <unistd.h>
#include <indilogger.h>
#include <memory>
Macros | |
#define | MAX_TRIES 20 |
#define | MAX_DEVICES 4 |
#define | SUBFRAME_SIZE 256 |
#define | SAMPLE_RATE 1000000 |
#define | FREQUENCY 20000000000 |
#define | SIDEREAL_DAY 86164.090530833 |
#define | RAD_AS ((360 * 60 * 60) / M_PI) |
#define | AIRY 1.21966 |
#define | AIRY_AS (AIRY * RAD_AS) |
#define | LIGHT_SPEED 299792458.0 |
#define | RESOLUTION0 (AIRY_AS * LIGHT_SPEED / FREQUENCY) |
#define | DISH_SIZE_M 5.0 |
#define | MAX_DISH_SIZE_M 32.0 |
#define | RESOLUTION_AS(size) (RESOLUTION0 / size) |
#define | RESOLUTION_MAX (RESOLUTION0 / MAX_DISH_SIZE_M) |
#define | IMAGE_WIDTH 1920 |
#define | IMAGE_HEIGHT 1200 |
#define | FOV_DEG (360.0 * IMAGE_WIDTH / SIDEREAL_DAY) |
#define | RESOLUTION_PX(size) (RESOLUTION_AS(size) * IMAGE_WIDTH / (FOV_DEG*60*60)) |
#define | RESOLUTION_PY(size) (RESOLUTION_AS(size) * IMAGE_HEIGHT / (FOV_DEG*60*60)) |
Functions | |
static void | cleanup () |
void | ISInit () |
Send client definitions of all properties. More... | |
void | ISGetProperties (const char *dev) |
Get Device Properties. More... | |
void | ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int num) |
Update the value of an existing switch vector property. More... | |
void | ISNewText (const char *dev, const char *name, char *texts[], char *names[], int num) |
Update the value of an existing text vector property. More... | |
void | ISNewNumber (const char *dev, const char *name, double values[], char *names[], int num) |
void | ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n) |
Update data of an existing blob vector property. More... | |
void | ISSnoopDevice (XMLEle *root) |
Function defined by Drivers that is called when another Driver it is snooping (by having previously called IDSnoopDevice()) sent any INDI message. More... | |
Variables | |
static RadioSim * | receiver |
#define AIRY 1.21966 |
#define DISH_SIZE_M 5.0 |
#define FOV_DEG (360.0 * IMAGE_WIDTH / SIDEREAL_DAY) |
#define FREQUENCY 20000000000 |
#define IMAGE_HEIGHT 1200 |
#define IMAGE_WIDTH 1920 |
#define LIGHT_SPEED 299792458.0 |
#define MAX_DEVICES 4 |
#define MAX_DISH_SIZE_M 32.0 |
#define MAX_TRIES 20 |
#define RAD_AS ((360 * 60 * 60) / M_PI) |
#define RESOLUTION0 (AIRY_AS * LIGHT_SPEED / FREQUENCY) |
#define RESOLUTION_AS | ( | size | ) | (RESOLUTION0 / size) |
#define RESOLUTION_MAX (RESOLUTION0 / MAX_DISH_SIZE_M) |
#define RESOLUTION_PX | ( | size | ) | (RESOLUTION_AS(size) * IMAGE_WIDTH / (FOV_DEG*60*60)) |
#define RESOLUTION_PY | ( | size | ) | (RESOLUTION_AS(size) * IMAGE_HEIGHT / (FOV_DEG*60*60)) |
#define SAMPLE_RATE 1000000 |
#define SIDEREAL_DAY 86164.090530833 |
#define SUBFRAME_SIZE 256 |
|
static |
void ISInit | ( | void | ) |
Send client definitions of all properties.
|
static |