Files
small_tel/Daemons/10micron_stellarium/args.h
2026-09-28 17:50:25 +03:00

46 lines
1.9 KiB
C

/*
* This file is part of the mountdaemon_10micron project.
* Copyright 2026 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
typedef struct{
char *device; // serial device name
char *port; // port to connect
char *cmdnode; // port for commands sending
char *pidfile; // name of PID file
char *logfile; // logging to this file
char *crdsfile; // file where FITS-header should be written
char *mountname; // set mount name for FITS-header
char *parkA; // parking coordinates (degrees or "DD:MM:SS")
char *parkZ;
char *latitude; // place coordinates
char *longitude;
char *altitude; // place altitude
int emulation; // run in emulation mode
int verbose; // verbose level
int sleept; // server's sleeping in main cycle time
int isunix; // use UNIX-socket for command port
int serspeed; // serial speed, baud
int maxclients; // max amount of clients connected to one socket
double sertmout; // serial timeout, s
double DUT1; // DUT1 value
double polarx, polary; // polar coordinates, m
} parameters_t;
parameters_t *parse_cmdline(int *argc, char ***argv);