Exemplo n.º 1
0
void
CrossSectionWindow::PaintGlide(Chart &chart)
{
  if (gps_info.ground_speed > fixed(10)) {
    fixed t = vec.distance / gps_info.ground_speed;
    chart.DrawLine(fixed_zero, gps_info.nav_altitude, vec.distance,
                   gps_info.nav_altitude + calculated_info.average * t,
                   ChartLook::STYLE_BLUETHIN);
  }
}
Exemplo n.º 2
0
void
CrossSectionWindow::PaintGlide(Chart &chart)
{
  if (gps_info.GroundSpeed > fixed(10)) {
    fixed t = vec.Distance / gps_info.GroundSpeed;
    chart.DrawLine(fixed_zero, gps_info.NavAltitude, vec.Distance,
                   gps_info.NavAltitude + calculated_info.Average30s * t,
                   Chart::STYLE_BLUETHIN);
  }
}