Windows fixes/work-arounds
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
This commit is contained in:
parent
482672f941
commit
b61e22bdb3
1 changed files with 5 additions and 3 deletions
|
@ -362,8 +362,10 @@ double FGRadioTransmission::ITM_calculate_attenuation(SGGeod pos, double freq, i
|
|||
|
||||
_elevations.push_front(point_distance);
|
||||
_elevations.push_front(num_points -1);
|
||||
int size = _elevations.size();
|
||||
double itm_elev[size];
|
||||
|
||||
int size = _elevations.size();
|
||||
double itm_elev[10000];
|
||||
|
||||
for(int i=0;i<size;i++) {
|
||||
itm_elev[i]=_elevations[i];
|
||||
//cerr << "ITM:: itm_elev: " << _elevations[i] << endl;
|
||||
|
@ -922,7 +924,7 @@ double FGRadioTransmission::watt_to_dbm(double power_watt) {
|
|||
}
|
||||
|
||||
double FGRadioTransmission::dbm_to_watt(double dbm) {
|
||||
return exp( (dbm-30) * log(10) / 10); // returns Watts
|
||||
return exp( (dbm-30) * log(10.0) / 10.0); // returns Watts
|
||||
}
|
||||
|
||||
double FGRadioTransmission::dbm_to_microvolt(double dbm) {
|
||||
|
|
Loading…
Add table
Reference in a new issue