1
0
Fork 0

Windows fixes/work-arounds

Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
This commit is contained in:
Vivian Meazza 2011-12-05 08:55:33 +00:00
parent 482672f941
commit b61e22bdb3

View file

@ -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) {