Copter: remove OSD comments

This commit is contained in:
Randy Mackay 2018-09-15 14:34:20 +09:00
parent 5e46b97894
commit e78dab1d10
1 changed files with 0 additions and 2 deletions

View File

@ -587,10 +587,8 @@ void Copter::update_altitude()
void Copter::publish_osd_info() void Copter::publish_osd_info()
{ {
AP_OSD::NavInfo nav_info; AP_OSD::NavInfo nav_info;
//wp_distance: conversion needed from centimeters to meters
nav_info.wp_distance = flightmode->wp_distance() * 1.0e-2f; nav_info.wp_distance = flightmode->wp_distance() * 1.0e-2f;
nav_info.wp_bearing = flightmode->wp_bearing(); nav_info.wp_bearing = flightmode->wp_bearing();
//crosstrack_error: conversion needed from centimeters to meters
nav_info.wp_xtrack_error = flightmode->crosstrack_error() * 1.0e-2f; nav_info.wp_xtrack_error = flightmode->crosstrack_error() * 1.0e-2f;
nav_info.wp_number = mission.get_current_nav_index(); nav_info.wp_number = mission.get_current_nav_index();
osd.set_nav_info(nav_info); osd.set_nav_info(nav_info);