navigator: always fully initialize geofence msg

This commit is contained in:
murata,katsutoshi 2024-08-14 10:33:36 +09:00 committed by GitHub
parent 0459481cb4
commit a327b14cef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;