case GPS_WP_USR:
// TODO
break;
+ case GPS_WP_VIRT:
+ // TODO
+ break;
}
}
}
// derive GS baseline (perpendicular to the runay
// along the ground)
- double tlon, tlat, taz;
+ double tlon = 0.0, tlat = 0.0, taz = 0.0;
geo_direct_wgs_84 ( 0.0, gs_lat, gs_lon,
target_radial + 90,
100.0, &tlat, &tlon, &taz );
void
radAlt::update_altitude()
{
- int mode = _radar_mode_control_node->getIntValue();
- double tilt = _Instrument->getDoubleValue("tilt", -85);
+// int mode = _radar_mode_control_node->getIntValue();
+// double tilt = _Instrument->getDoubleValue("tilt", -85);
double el_limit = _Instrument->getDoubleValue("elev-limit", 15);
double el_step = _Instrument->getDoubleValue("elev-step-deg", 15);
double az_limit = _Instrument->getDoubleValue("az-limit-deg", 15);
// pretend we have a scan angle bigger then the FOV
// TODO:check real fov, enlarge if < nn, and do clipping if > mm
- const float fovFactor = 1.45f;
+// const float fovFactor = 1.45f;
_Instrument->setStringValue("status", modeButton.c_str());
list_of_SGWxRadarEcho *radarEcho = &_radarEchoBuffer;