From ee72a3f62db91429c3a4489bd8b03a4a0a9c4c06 Mon Sep 17 00:00:00 2001 From: Wolfgang Hoenig Date: Mon, 25 Mar 2019 16:15:08 -0700 Subject: [PATCH] Fixes a bug for extPos msg introduced in PR408. This fixes issue #409. Tested with CF 2.0 and crazyflie_ros. --- src/modules/src/crtp_localization_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/src/crtp_localization_service.c b/src/modules/src/crtp_localization_service.c index 0f74d49704..8fbde6bc62 100644 --- a/src/modules/src/crtp_localization_service.c +++ b/src/modules/src/crtp_localization_service.c @@ -115,7 +115,7 @@ static void locSrvCrtpCB(CRTPPacket* pk) static void extPositionHandler(CRTPPacket* pk) { - const struct CrtpExtPosition* data = (const struct CrtpExtPosition*)pk; + const struct CrtpExtPosition* data = (const struct CrtpExtPosition*)pk->data; ext_pos.x = data->x; ext_pos.y = data->y;