Rover: fix init of struct published to OSD

This commit is contained in:
Randy Mackay 2019-09-26 15:35:55 +09:00
parent a386048be7
commit 7cd6aec799

View File

@ -330,7 +330,7 @@ void Rover::update_mission(void)
#if OSD_ENABLED == ENABLED
void Rover::publish_osd_info()
{
AP_OSD::NavInfo nav_info {};
AP_OSD::NavInfo nav_info {0};
if (control_mode == &mode_loiter) {
nav_info.wp_xtrack_error = control_mode->get_distance_to_destination();
} else {