From 3cb48feb617328b0b10a2e552059f3e002705180 Mon Sep 17 00:00:00 2001 From: oravla5 Date: Tue, 23 Apr 2024 16:36:49 +0200 Subject: [PATCH] high_latency_stream: minor PR fix --- src/modules/mavlink/streams/HIGH_LATENCY2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mavlink/streams/HIGH_LATENCY2.hpp b/src/modules/mavlink/streams/HIGH_LATENCY2.hpp index 6eb56abbad..6ce85a2e75 100644 --- a/src/modules/mavlink/streams/HIGH_LATENCY2.hpp +++ b/src/modules/mavlink/streams/HIGH_LATENCY2.hpp @@ -385,7 +385,7 @@ private: { vehicle_attitude_s attitude; - if (_attitude_sub.update(&attitude) && _attitude_sub.copy(&attitude)) { + if (_attitude_sub.update(&attitude)) { const matrix::Eulerf euler = matrix::Quatf(attitude.q); msg->heading = static_cast(math::degrees(matrix::wrap_2pi(euler.psi())) * 0.5f);