|
SatDump 2.0.0-alpha-520736c72
|
Parent class for attenuation objects. More...
#include <generic.h>
Public Member Functions | |
| virtual double | get_attenuation ()=0 |
| Get the estimated attenuation. This pure virtual function MUST be implemented by every derived class. | |
| void | set_frequency (double freq) |
| Set frequency static variable. | |
| void | set_slant_range (double range) |
| Set slant range static variable. | |
| void | set_polarization (uint8_t polar) |
| Set polarization static variable. | |
| void | set_elevation_angle (double elev_angle) |
| Set elevation angle static variable. | |
Protected Attributes | |
| double | frequency = 0 |
| double | elevation_angle = 0 |
| double | slant_range = 0 |
| uint8_t | polarization = 0 |
Parent class for attenuation objects.
This is an abstract class that must be derived by other classes in order to simulate a specific type of attenuation. Holds information, in the form of static variables, about the operating frequency, the elevation angle, the slant range and the polarization of the tracker at a specific time instance.
Each derived class must implement the pure virtual function get_attenuation according to the attenuation it describes, using the static variables of the parent class.
|
pure virtual |
Get the estimated attenuation. This pure virtual function MUST be implemented by every derived class.
Implemented in AtmosphericGasesITU, AtmosphericGasesRegression, and FreeSpacePathLossAttenuation.
| void GenericAttenuation::set_elevation_angle | ( | double | elev_angle | ) |
Set elevation angle static variable.
| elev_angle | The elevation angle in radians |
| void GenericAttenuation::set_frequency | ( | double | freq | ) |
Set frequency static variable.
| freq | The frequency in Hz |
| void GenericAttenuation::set_polarization | ( | uint8_t | polar | ) |
Set polarization static variable.
| polar | The polarization enumeration |
| void GenericAttenuation::set_slant_range | ( | double | range | ) |
Set slant range static variable.
| range | The range in km |