mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Rover: fix init of struct published to OSD
This commit is contained in:
parent
929fbc3bba
commit
1d21d1fde4
@ -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