mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
Larger angles require int16 instead of int8
This commit is contained in:
+3
-3
@@ -26,9 +26,9 @@
|
|||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="ATTITUDE" ID="6">
|
<message name="ATTITUDE" ID="6">
|
||||||
<field name="phi" type="int8" unit="deg"></field>
|
<field name="phi" type="int16" unit="deg"></field>
|
||||||
<field name="psi" type="int8" unit="deg"></field>
|
<field name="psi" type="int16" unit="deg"></field>
|
||||||
<field name="theta" type="int8" unit="deg"></field>
|
<field name="theta" type="int16" unit="deg"></field>
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="IR_SENSORS" ID="7">
|
<message name="IR_SENSORS" ID="7">
|
||||||
|
|||||||
@@ -72,9 +72,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#define PERIODIC_SEND_ATTITUDE() Downlink({ \
|
#define PERIODIC_SEND_ATTITUDE() Downlink({ \
|
||||||
int8_t phi = DegOfRad(estimator_phi); \
|
int16_t phi = DegOfRad(estimator_phi); \
|
||||||
int8_t psi = DegOfRad(estimator_psi); \
|
int16_t psi = DegOfRad(estimator_psi); \
|
||||||
int8_t theta = DegOfRad(estimator_theta); \
|
int16_t theta = DegOfRad(estimator_theta); \
|
||||||
DOWNLINK_SEND_ATTITUDE(&phi, &psi, &theta); \
|
DOWNLINK_SEND_ATTITUDE(&phi, &psi, &theta); \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user