#include <sstream>
#include <iomanip>
+
using std::stringstream;
using std::endl;
using std::setprecision;
using std::fixed;
using std::setw;
using std::setfill;
+using std::string;
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
_radar_centre_node->setBoolValue(false);
}
- //SG_LOG(SG_GENERAL, SG_DEBUG, "Radar: displacement "
+ //SG_LOG(SG_INSTR, SG_DEBUG, "Radar: displacement "
// << _x_offset <<", "<<_y_offset
// << " user_speed_east_fps * SG_FPS_TO_KT "
// << user_speed_east_fps * SG_FPS_TO_KT
* wxRotate(angle) * _centerTrans);
addQuad(_vertices, _texCoords, m, texBase);
- //SG_LOG(SG_GENERAL, SG_DEBUG, "Radar: drawing clouds"
+ //SG_LOG(SG_INSTR, SG_DEBUG, "Radar: drawing clouds"
// << " ID=" << cloudId
// << " x=" << x
// << " y="<< y
* wxRotate(angle) * _centerTrans);
addQuad(_vertices, _texCoords, m, texBase);
- //SG_LOG(SG_GENERAL, SG_DEBUG, "Radar: drawing TACAN"
+ //SG_LOG(SG_INSTR, SG_DEBUG, "Radar: drawing TACAN"
// << " dist=" << radius
// << " view_heading=" << _view_heading * SG_RADIANS_TO_DEGREES
// << " bearing=" << angle * SG_RADIANS_TO_DEGREES
m *= _centerTrans;
addQuad(_vertices, _texCoords, m, texBase);
- //SG_LOG(SG_GENERAL, SG_DEBUG, "Radar: drawing heading marker"
+ //SG_LOG(SG_INSTR, SG_DEBUG, "Radar: drawing heading marker"
// << " x,y " << x <<","<< y
// << " dist" << dist
// << " view_heading" << _view_heading * SG_RADIANS_TO_DEGREES
alt = 0; // to allow some vertical extent of target
double radarhorizon = 1.23 * (sqrt(alt) + sqrt(user_alt));
-// SG_LOG(SG_GENERAL, SG_ALERT, "Radar: radar horizon " << radarhorizon);
+// SG_LOG(SG_INSTR, SG_ALERT, "Radar: radar horizon " << radarhorizon);
return radarhorizon >= range_nm;
}
constant = 35;
double maxrange = constant * pow(sigma, 0.25);
- //SG_LOG(SG_GENERAL, SG_DEBUG, "Radar: max range " << maxrange);
+ //SG_LOG(SG_INSTR, SG_DEBUG, "Radar: max range " << maxrange);
return maxrange >= range_nm;
}