mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
navigator: always fully initialize geofence msg
This commit is contained in:
parent
0459481cb4
commit
a327b14cef
@ -104,7 +104,7 @@ void Geofence::run()
|
||||
_initiate_fence_updated = false;
|
||||
_dataman_state = DatamanState::Read;
|
||||
|
||||
geofence_status_s status;
|
||||
geofence_status_s status{};
|
||||
status.timestamp = hrt_absolute_time();
|
||||
status.geofence_id = _opaque_id;
|
||||
status.status = geofence_status_s::GF_STATUS_LOADING;
|
||||
@ -159,7 +159,7 @@ void Geofence::run()
|
||||
_dataman_state = DatamanState::UpdateRequestWait;
|
||||
_fence_updated = true;
|
||||
|
||||
geofence_status_s status;
|
||||
geofence_status_s status{};
|
||||
status.timestamp = hrt_absolute_time();
|
||||
status.geofence_id = _opaque_id;
|
||||
status.status = geofence_status_s::GF_STATUS_READY;
|
||||
@ -179,7 +179,7 @@ void Geofence::run()
|
||||
_updateFence();
|
||||
_fence_updated = true;
|
||||
|
||||
geofence_status_s status;
|
||||
geofence_status_s status{};
|
||||
status.timestamp = hrt_absolute_time();
|
||||
status.geofence_id = _opaque_id;
|
||||
status.status = geofence_status_s::GF_STATUS_READY;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user