1
1
/* ***************************************************************************\
2
- * Signal Server 1.3.7 : Server optimised SPLAT! by Alex Farrant *
2
+ * Signal Server 1.3.8 : Server optimised SPLAT! by Alex Farrant *
3
3
******************************************************************************
4
4
* SPLAT! Project started in 1997 by John A. Magliacane, KD2BD *
5
5
* *
19
19
* for more details. *
20
20
* *
21
21
******************************************************************************
22
- * g++ -Wall -O3 -s -lm -fomit-frame-pointer itm.cpp cost.cpp hata .cpp main.cpp -o ss *
22
+ * g++ -Wall -O3 -s -lm -fomit-frame-pointer itm.cpp hata.cpp cost.cpp fspl .cpp main.cpp -o ss *
23
23
\****************************************************************************/
24
24
25
25
#include < stdio.h>
@@ -122,6 +122,8 @@ double HataLinkdB(float f,float h_B, float h_M, float d, int mode);
122
122
123
123
double CostHataLinkdB (float f,float h_B, float h_M, float d);
124
124
125
+ double FsplLinkdB (float f, float d);
126
+
125
127
double ked (double freq, double elev[], double rxh, double dkm);
126
128
127
129
double arccos (double x, double y)
@@ -1788,6 +1790,11 @@ void PlotPropPath(struct site source, struct site destination, unsigned char mas
1788
1790
// COST231-HATA
1789
1791
loss=CostHataLinkdB (LR.frq_mhz ,txelev,path.elevation [y]+(destination.alt *METERS_PER_FOOT),dkm);
1790
1792
break ;
1793
+ case 7 :
1794
+ // ITU-R P.525 Free space path loss
1795
+ loss=FsplLinkdB (LR.frq_mhz ,dkm);
1796
+ // fprintf(stdout,"MHz: %1f KM: %1f = %1fdB",LR.frq_mhz,dkm,loss);
1797
+ break ;
1791
1798
1792
1799
default :
1793
1800
point_to_point (elev,source.alt *METERS_PER_FOOT,
@@ -3803,7 +3810,7 @@ int main(int argc, char *argv[])
3803
3810
3804
3811
3805
3812
3806
- strncpy (ss_version," 1.3.7 \0 " ,6 );
3813
+ strncpy (ss_version," 1.3.8 \0 " ,6 );
3807
3814
strncpy (ss_name," Signal Server\0 " ,14 );
3808
3815
3809
3816
if (argc==1 )
@@ -3830,7 +3837,7 @@ int main(int argc, char *argv[])
3830
3837
fprintf (stdout," -R Radius (miles/kilometers)\n " );
3831
3838
fprintf (stdout," -res Pixels per degree. 300/600/1200(default)/3600 (optional)\n " );
3832
3839
fprintf (stdout," -t Terrain background\n " );
3833
- fprintf (stdout," -pm Propagation model. 1: ITM (Default), 2: LOS, 3-5: Hata\n " );
3840
+ fprintf (stdout," -pm Propagation model. 1: ITM (Default), 2: LOS, 3-5: Hata, 6: COST231, 7: ITU525 \n " );
3834
3841
fprintf (stdout," -ked Knife edge diffraction (Default for ITM)\n " );
3835
3842
fprintf (stdout," -wf Win32 SDF tile names ('=' not ':')\n " );
3836
3843
fprintf (stdout," -dbg Debug mode\n\n " );
0 commit comments