mirror of https://github.com/ArduPilot/ardupilot
Copter: remove OSD comments
This commit is contained in:
parent
5e46b97894
commit
e78dab1d10
|
@ -587,10 +587,8 @@ void Copter::update_altitude()
|
|||
void Copter::publish_osd_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_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_number = mission.get_current_nav_index();
|
||||
osd.set_nav_info(nav_info);
|
||||
|
|
Loading…
Reference in New Issue