- void setTxPower(double txpower) { _transmitter_power = txpower; };
- void setRxSensitivity(double sensitivity) { _receiver_sensitivity = sensitivity; };
- void setTxAntennaHeight(double tx_antenna_height) { _tx_antenna_height = tx_antenna_height; };
- void setRxAntennaHeight(double rx_antenna_height) { _rx_antenna_height = rx_antenna_height; };
- void setPropagationModel(int model) { _propagation_model = model; };
- // transmission_type: 0 for air to ground 1 for ground to air, 2 for air to air, 3 for pilot to ground, 4 for pilot to air
+ inline void setTxPower(double txpower) { _transmitter_power = txpower; };
+ inline void setRxSensitivity(double sensitivity) { _receiver_sensitivity = sensitivity; };
+ inline void setTxAntennaHeight(double tx_antenna_height) { _tx_antenna_height = tx_antenna_height; };
+ inline void setRxAntennaHeight(double rx_antenna_height) { _rx_antenna_height = rx_antenna_height; };
+ inline void setTxAntennaGain(double tx_antenna_gain) { _tx_antenna_gain = tx_antenna_gain; };
+ inline void setRxAntennaGain(double rx_antenna_gain) { _rx_antenna_gain = rx_antenna_gain; };
+ inline void setTxLineLosses(double tx_line_losses) { _tx_line_losses = tx_line_losses; };
+ inline void setRxLineLosses(double rx_line_losses) { _rx_line_losses = rx_line_losses; };
+ inline void setPropagationModel(int model) { _propagation_model = model; };
+ inline void setPolarization(int polarization) { _polarization = polarization; };
+
+ /// static convenience functions for unit conversions
+ static double watt_to_dbm(double power_watt);
+ static double dbm_to_watt(double dbm);
+ static double dbm_to_microvolt(double dbm);
+
+
+/*** Receive ATC radio communication as text
+* transmission_type: 0 for air to ground 1 for ground to air, 2 for air to air, 3 for pilot to ground, 4 for pilot to air
+* @param: transmitter position, frequency, ATC text, flag to indicate whether the transmission comes from an ATC groundstation
+* @return: none
+***/