mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Rover: fix init of struct published to OSD
This commit is contained in:
parent
a386048be7
commit
7cd6aec799
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user