From 4453824ccf46ca6a04f677cad47aa7649df08743 Mon Sep 17 00:00:00 2001 From: Pascal Brisset Date: Fri, 20 Oct 2006 15:32:19 +0000 Subject: [PATCH] Larger angles require int16 instead of int8 --- conf/messages.xml | 6 +++--- sw/airborne/ap_downlink.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/messages.xml b/conf/messages.xml index 7f83e6d5fa..61dddc1290 100644 --- a/conf/messages.xml +++ b/conf/messages.xml @@ -26,9 +26,9 @@ - - - + + + diff --git a/sw/airborne/ap_downlink.h b/sw/airborne/ap_downlink.h index bb563c3c0c..14c0a1031e 100644 --- a/sw/airborne/ap_downlink.h +++ b/sw/airborne/ap_downlink.h @@ -72,9 +72,9 @@ #define PERIODIC_SEND_ATTITUDE() Downlink({ \ - int8_t phi = DegOfRad(estimator_phi); \ - int8_t psi = DegOfRad(estimator_psi); \ - int8_t theta = DegOfRad(estimator_theta); \ + int16_t phi = DegOfRad(estimator_phi); \ + int16_t psi = DegOfRad(estimator_psi); \ + int16_t theta = DegOfRad(estimator_theta); \ DOWNLINK_SEND_ATTITUDE(&phi, &psi, &theta); \ })