mirror of
https://agent.ghink.cloud/wb2osz/direwolf
synced 2025-04-11 09:08:34 +00:00
new file: A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf new file: A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf modified: APRStt-Implementation-Notes.pdf modified: CHANGES.txt new file: Makefile modified: Makefile.linux modified: Makefile.win deleted: Quick-Start-Guide-Windows.pdf modified: Raspberry-Pi-APRS-Tracker.pdf modified: Raspberry-Pi-APRS.pdf modified: User-Guide.pdf modified: aclients.c modified: aprs_tt.c modified: aprs_tt.h modified: atest.c modified: audio.c modified: audio.h modified: audio_win.c modified: ax25_pad.c modified: ax25_pad.h modified: beacon.c modified: beacon.h modified: config.c modified: config.h modified: decode_aprs.c modified: decode_aprs.h modified: demod.c modified: demod.h modified: demod_9600.c modified: demod_9600.h modified: demod_afsk.c modified: digipeater.c modified: digipeater.h modified: direwolf.c modified: direwolf.conf deleted: direwolf.desktop modified: direwolf.h new file: direwolf.spec new file: direwolf.txt new file: dlq.c new file: dlq.h modified: dsp.c new file: dtime_now.c new file: dtime_now.h modified: dtmf.c modified: dtmf.h new file: dwespeak.bat new file: dwespeak.sh modified: fsk_demod_state.h modified: gen_packets.c modified: gen_tone.c new file: geotranz/README-FIRST.txt new file: geotranz/error_string.c new file: geotranz/error_string.h new file: geotranz/mgrs.c new file: geotranz/mgrs.h new file: geotranz/polarst.c new file: geotranz/polarst.h new file: geotranz/readme.txt new file: geotranz/releasenotes.txt new file: geotranz/tranmerc.c new file: geotranz/tranmerc.h new file: geotranz/ups.c new file: geotranz/ups.h new file: geotranz/usng.c new file: geotranz/usng.h new file: geotranz/utm.c new file: geotranz/utm.h modified: hdlc_rec.c modified: hdlc_rec.h modified: hdlc_rec2.c modified: hdlc_rec2.h modified: hdlc_send.c modified: igate.c modified: igate.h modified: kiss_frame.c modified: kiss_frame.h modified: kissnet.c modified: latlong.c modified: latlong.h modified: ll2utm.c modified: log.c modified: log.h new file: man1/aclients.1 new file: man1/atest.1 new file: man1/decode_aprs.1 new file: man1/direwolf.1 new file: man1/gen_packets.1 new file: man1/ll2utm.1 new file: man1/log2gpx.1 new file: man1/text2tt.1 new file: man1/tt2text.1 new file: man1/utm2ll.1 modified: multi_modem.c modified: multi_modem.h new file: pfilter.c new file: pfilter.h modified: ptt.c modified: ptt.h deleted: pttest.c modified: rdq.c new file: recv.c new file: recv.h modified: redecode.c modified: redecode.h modified: rrbb.c modified: rrbb.h modified: server.c modified: server.h modified: telemetry.c modified: telemetry.h modified: textcolor.c modified: textcolor.h modified: tocalls.txt modified: tq.c modified: tq.h modified: tt_text.c modified: tt_text.h modified: tt_user.c modified: tt_user.h new file: ttcalc.c deleted: udp_test.c deleted: utm/LatLong-UTMconversion.c deleted: utm/LatLong-UTMconversion.h deleted: utm/README.txt deleted: utm/SwissGrid.cpp deleted: utm/UTMConversions.cpp deleted: utm/constants.h modified: utm2ll.c modified: version.h new file: xid.c modified: xmit.c modified: xmit.h
155 lines
4.3 KiB
C
155 lines
4.3 KiB
C
|
|
/*----------------------------------------------------------------------------
|
|
*
|
|
* Name: config.h
|
|
*
|
|
* Purpose:
|
|
*
|
|
* Description:
|
|
*
|
|
*-----------------------------------------------------------------------------*/
|
|
|
|
|
|
#ifndef CONFIG_H
|
|
#define CONFIG_H 1
|
|
|
|
#include "audio.h" /* for struct audio_s */
|
|
#include "digipeater.h" /* for struct digi_config_s */
|
|
#include "aprs_tt.h" /* for struct tt_config_s */
|
|
#include "igate.h" /* for struct igate_config_s */
|
|
|
|
/*
|
|
* All the leftovers.
|
|
* This wasn't thought out. It just happened.
|
|
*/
|
|
|
|
enum beacon_type_e { BEACON_IGNORE, BEACON_POSITION, BEACON_OBJECT, BEACON_TRACKER, BEACON_CUSTOM };
|
|
|
|
enum sendto_type_e { SENDTO_XMIT, SENDTO_IGATE, SENDTO_RECV };
|
|
|
|
|
|
#define MAX_BEACONS 30
|
|
|
|
struct misc_config_s {
|
|
|
|
int agwpe_port; /* Port number for the “AGW TCPIP Socket Interface” */
|
|
int kiss_port; /* Port number for the “KISS” protocol. */
|
|
int enable_kiss_pt; /* Enable pseudo terminal for KISS. */
|
|
/* Want this to be off by default because it hangs */
|
|
/* after a while if nothing is reading from other end. */
|
|
|
|
char nullmodem[40]; /* Serial port name for our end of the */
|
|
/* virtual null modem for native Windows apps. */
|
|
|
|
char nmea_port[40]; /* Serial port name for NMEA communication with GPS */
|
|
/* receiver and/or mapping application. */
|
|
|
|
char logdir[80]; /* Directory for saving activity logs. */
|
|
|
|
int sb_configured; /* TRUE if SmartBeaconing is configured. */
|
|
int sb_fast_speed; /* MPH */
|
|
int sb_fast_rate; /* seconds */
|
|
int sb_slow_speed; /* MPH */
|
|
int sb_slow_rate; /* seconds */
|
|
int sb_turn_time; /* seconds */
|
|
int sb_turn_angle; /* degrees */
|
|
int sb_turn_slope; /* degrees * MPH */
|
|
|
|
|
|
int num_beacons; /* Number of beacons defined. */
|
|
|
|
struct beacon_s {
|
|
|
|
enum beacon_type_e btype; /* Position or object. */
|
|
|
|
int lineno; /* Line number from config file for later error messages. */
|
|
|
|
enum sendto_type_e sendto_type;
|
|
|
|
/* SENDTO_XMIT - Usually beacons go to a radio transmitter. */
|
|
/* chan, below is the channel number. */
|
|
/* SENDTO_IGATE - Send to IGate, probably to announce my position */
|
|
/* rather than relying on someone else to hear */
|
|
/* me on the radio and report me. */
|
|
/* SENDTO_RECV - Pretend this was heard on the specified */
|
|
/* radio channel. Mostly for testing. It is a */
|
|
/* convenient way to send packets to attached apps. */
|
|
|
|
int sendto_chan; /* Transmit or simulated receive channel for above. Should be 0 for IGate. */
|
|
|
|
int delay; /* Seconds to delay before first transmission. */
|
|
|
|
int every; /* Time between transmissions, seconds. */
|
|
/* Remains fixed for PBEACON and OBEACON. */
|
|
/* Dynamically adjusted for TBEACON. */
|
|
|
|
time_t next; /* Unix time to transmit next one. */
|
|
|
|
char *dest; /* NULL or explicit AX.25 destination to use */
|
|
/* instead of the software version such as APDW11. */
|
|
|
|
int compress; /* Use more compact form? */
|
|
|
|
char objname[10]; /* Object name. Any printable characters. */
|
|
|
|
char *via; /* Path, e.g. "WIDE1-1,WIDE2-1" or NULL. */
|
|
|
|
char *custom_info; /* Info part for handcrafted custom beacon. */
|
|
/* Ignore the rest below if this is set. */
|
|
|
|
int messaging; /* Set messaging attribute for position report. */
|
|
/* i.e. Data Type Indicator of '=' rather than '!' */
|
|
|
|
double lat; /* Latitude and longitude. */
|
|
double lon;
|
|
float alt_m; /* Altitude in meters. */
|
|
|
|
char symtab; /* Symbol table: / or \ or overlay character. */
|
|
char symbol; /* Symbol code. */
|
|
|
|
float power; /* For PHG. */
|
|
float height;
|
|
float gain; /* Original protocol spec was unclear. */
|
|
/* Addendum 1.1 clarifies it is dBi not dBd. */
|
|
|
|
char dir[3]; /* 1 or 2 of N,E,W,S, or empty for omni. */
|
|
|
|
float freq; /* MHz. */
|
|
float tone; /* Hz. */
|
|
float offset; /* MHz. */
|
|
|
|
char *comment; /* Comment or NULL. */
|
|
|
|
|
|
} beacon[MAX_BEACONS];
|
|
|
|
};
|
|
|
|
|
|
#define MIN_IP_PORT_NUMBER 1024
|
|
#define MAX_IP_PORT_NUMBER 49151
|
|
|
|
|
|
#define DEFAULT_AGWPE_PORT 8000 /* Like everyone else. */
|
|
#define DEFAULT_KISS_PORT 8001 /* Above plus 1. */
|
|
|
|
|
|
#define DEFAULT_NULLMODEM "COM3" /* should be equiv. to /dev/ttyS2 on Cygwin */
|
|
|
|
|
|
|
|
|
|
extern void config_init (char *fname, struct audio_s *p_modem,
|
|
struct digi_config_s *digi_config,
|
|
struct tt_config_s *p_tt_config,
|
|
struct igate_config_s *p_igate_config,
|
|
struct misc_config_s *misc_config);
|
|
|
|
|
|
|
|
#endif /* CONFIG_H */
|
|
|
|
/* end config.h */
|
|
|
|
|