|
SatDump 2.0.0-alpha-520736c72
|
Parent class for antenna objects. More...
#include <generic.h>
Public Types | |
| enum | antenna_t { YAGI , HELIX , PARABOLIC_REFLECTOR , CANTED_TURNSTYLE , CUSTOM , MONOPOLE , DIPOLE , QUADRIFILAR_HELIX } |
Public Member Functions | |
| int | unique_id () |
| double | get_frequency () |
| Get the frequency of the antenna. | |
| void | set_pointing_error (double error) |
| Set the pointing error of the antenna. | |
| double | get_pointing_error () |
| Get the pointing error of the antenna. | |
| int | get_polarization () |
| Get the polarization of the antenna. | |
| double | get_wavelength () |
| Get the wavelength of the antenna. | |
| virtual double | get_gain ()=0 |
| Get the gain of the antenna. This pure virtual function MUST be implemented by every derived class. | |
| virtual double | get_beamwidth ()=0 |
| Get the beamwidth of the antenna. This pure virtual function MUST be implemented by every derived class. | |
| virtual double | get_gain_rolloff ()=0 |
| Get the the gain roll-off of the antenna. | |
| GenericAntenna (uint8_t type, double frequency, int polarization, double pointing_error) | |
| The constructor of generic_antenna class. | |
Public Attributes | |
| uint8_t | d_type |
| double | d_frequency |
| double | d_pointing_error |
| int | d_polarization |
| int | my_id |
Static Public Attributes | |
| static int | base_unique_id = 1 |
Parent class for antenna objects.
Parent of an antenna class that will simulate different types of antennas.
The enumeration that defines the type of the antenna
| antenna::GenericAntenna::GenericAntenna | ( | uint8_t | type, |
| double | frequency, | ||
| int | polarization, | ||
| double | pointing_error ) |
The constructor of generic_antenna class.
| type | The enumeration that defines the type of the antenna |
| frequency | The frequency of the antenna in Hz |
| polarization | The enumeration that defines the antenna polarization |
|
pure virtual |
Get the beamwidth of the antenna. This pure virtual function MUST be implemented by every derived class.
Implemented in antenna::DipoleAntenna, antenna::HelixAntenna, antenna::ParabolicReflectorAntenna, and antenna::QuadrifilarHelixAntenna.
| double antenna::GenericAntenna::get_frequency | ( | ) |
Get the frequency of the antenna.
|
pure virtual |
Get the gain of the antenna. This pure virtual function MUST be implemented by every derived class.
Implemented in antenna::DipoleAntenna, antenna::HelixAntenna, antenna::ParabolicReflectorAntenna, and antenna::QuadrifilarHelixAntenna.
|
pure virtual |
Get the the gain roll-off of the antenna.
Implemented in antenna::DipoleAntenna, antenna::HelixAntenna, antenna::ParabolicReflectorAntenna, and antenna::QuadrifilarHelixAntenna.
| double antenna::GenericAntenna::get_pointing_error | ( | ) |
Get the pointing error of the antenna.
| int antenna::GenericAntenna::get_polarization | ( | ) |
Get the polarization of the antenna.
| double antenna::GenericAntenna::get_wavelength | ( | ) |
Get the wavelength of the antenna.
| void antenna::GenericAntenna::set_pointing_error | ( | double | error | ) |
Set the pointing error of the antenna.
| error | the pointing error in degrees. |