libprop: radio.h Source File

- Main Page
- Namespaces
- Classes
- Files

# radio.h

Go to the documentation of this file.

    00001 /*
    00002         libprop -- library to simulate and measure radio signal propagation
    00003
    00004         Copyright (C) 2007 Jeffrey Sharkey, jsharkey.org
    00005
    00006         This program is free software: you can redistribute it and/or modify
    00007         it under the terms of the GNU General Public License as published by
    00008         the Free Software Foundation, either version 3 of the License, or
    00009         (at your option) any later version.
    00010
    00011         This program is distributed in the hope that it will be useful,
    00012         but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00014         GNU General Public License for more details.
    00015
    00016         You should have received a copy of the GNU General Public License
    00017         along with this program.  If not, see <http://www.gnu.org/licenses/>.
    00018 */
    00019
    00020 #pragma once
    00021
    00022 #include "geom.h"
    00023 #include "source.h"
    00024 #include "utils.h"
    00025
    00026
    00027 #define SPEED_LIGHT 299792458 // meters/second
    00028 #define DENIED 1024
    00029 #define LARGE_LOSS -16777216
    00030
    00031 #define CONSIDER_VEG true
    00032 #define CONSIDER_LAND true
    00033
    00044 double knifeEdgeLoss(double startY, double endY, double pointY, double distX, double dist1X, double dist2X, double lambda, double sight);
    00045
    00051 double calcFresnelLoss(double ground, double sight, double fresnel);
    00052
    00058 double calcLandLoss(int type, double distance, double freq);
    00059
    00060 //double pathLoss(Point* p, Point* q, SourceGroup* s, double resolution);
    00061
    00071 double pathLoss(Point* p, Point* q, SourceGroup* s, double resolution, double txPower, double antenna, double freq);
    00072
    00073
    00083 double pathLossLongley(Point* p, Point* q, SourceGroup* s, double resolution, double txPower, double antenna, double freq);