Larger angles require int16 instead of int8

This commit is contained in:
Pascal Brisset
2006-10-20 15:32:19 +00:00
parent 29fca00332
commit 4453824ccf
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -26,9 +26,9 @@
</message>
<message name="ATTITUDE" ID="6">
<field name="phi" type="int8" unit="deg"></field>
<field name="psi" type="int8" unit="deg"></field>
<field name="theta" type="int8" unit="deg"></field>
<field name="phi" type="int16" unit="deg"></field>
<field name="psi" type="int16" unit="deg"></field>
<field name="theta" type="int16" unit="deg"></field>
</message>
<message name="IR_SENSORS" ID="7">
+3 -3
View File
@@ -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); \
})