mirror of https://github.com/ArduPilot/ardupilot
Fixed yaw.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@789 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
5207844480
commit
e308f2410e
|
@ -80,7 +80,7 @@ message 0x01 MSG_HEARTBEAT
|
|||
message 0x02 MSG_ATTITUDE
|
||||
int16_t roll
|
||||
int16_t pitch
|
||||
int16_t yaw
|
||||
uint16_t yaw
|
||||
|
||||
#
|
||||
# Location report
|
||||
|
|
|
@ -102,7 +102,7 @@ unpack_msg_heartbeat(
|
|||
struct msg_attitude {
|
||||
int16_t roll;
|
||||
int16_t pitch;
|
||||
int16_t yaw;
|
||||
uint16_t yaw;
|
||||
};
|
||||
|
||||
/// Send a MSG_ATTITUDE message
|
||||
|
@ -110,7 +110,7 @@ inline void
|
|||
send_msg_attitude(
|
||||
const int16_t roll,
|
||||
const int16_t pitch,
|
||||
const int16_t yaw)
|
||||
const uint16_t yaw)
|
||||
{
|
||||
uint8_t *__p = &_encodeBuf.payload[0];
|
||||
_pack(__p, roll);
|
||||
|
@ -127,7 +127,7 @@ inline void
|
|||
unpack_msg_attitude(
|
||||
int16_t &roll,
|
||||
int16_t &pitch,
|
||||
int16_t &yaw)
|
||||
uint16_t &yaw)
|
||||
{
|
||||
uint8_t *__p = &_decodeBuf.payload[0];
|
||||
_unpack(__p, roll);
|
||||
|
|
Loading…
Reference in New Issue