Updated command parameters.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@792 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
james.goppert 2010-11-07 05:37:18 +00:00
parent 91caffaf95
commit f28c752bbb
2 changed files with 10 additions and 10 deletions

View File

@ -146,7 +146,7 @@ message 0x21 MSG_COMMAND_UPLOAD
uint16_t listLength uint16_t listLength
uint8_t commandID uint8_t commandID
uint8_t p1 uint8_t p1
int16_t p2 int32_t p2
int32_t p3 int32_t p3
int32_t p4 int32_t p4
@ -155,7 +155,7 @@ message 0x22 MSG_COMMAND_LIST
uint16_t listLength uint16_t listLength
uint8_t commandID uint8_t commandID
uint8_t p1 uint8_t p1
int16_t p2 int32_t p2
int32_t p3 int32_t p3
int32_t p4 int32_t p4

View File

@ -466,7 +466,7 @@ struct msg_command_upload {
uint16_t listLength; uint16_t listLength;
uint8_t commandID; uint8_t commandID;
uint8_t p1; uint8_t p1;
int16_t p2; int32_t p2;
int32_t p3; int32_t p3;
int32_t p4; int32_t p4;
}; };
@ -479,7 +479,7 @@ send_msg_command_upload(
const uint16_t listLength, const uint16_t listLength,
const uint8_t commandID, const uint8_t commandID,
const uint8_t p1, const uint8_t p1,
const int16_t p2, const int32_t p2,
const int32_t p3, const int32_t p3,
const int32_t p4) const int32_t p4)
{ {
@ -492,7 +492,7 @@ send_msg_command_upload(
_pack(__p, p2); _pack(__p, p2);
_pack(__p, p3); _pack(__p, p3);
_pack(__p, p4); _pack(__p, p4);
_encodeBuf.header.length = 17; _encodeBuf.header.length = 19;
_encodeBuf.header.messageID = MSG_COMMAND_UPLOAD; _encodeBuf.header.messageID = MSG_COMMAND_UPLOAD;
_encodeBuf.header.messageVersion = MSG_VERSION_1; _encodeBuf.header.messageVersion = MSG_VERSION_1;
_sendMessage(); _sendMessage();
@ -506,7 +506,7 @@ unpack_msg_command_upload(
uint16_t &listLength, uint16_t &listLength,
uint8_t &commandID, uint8_t &commandID,
uint8_t &p1, uint8_t &p1,
int16_t &p2, int32_t &p2,
int32_t &p3, int32_t &p3,
int32_t &p4) int32_t &p4)
{ {
@ -532,7 +532,7 @@ struct msg_command_list {
uint16_t listLength; uint16_t listLength;
uint8_t commandID; uint8_t commandID;
uint8_t p1; uint8_t p1;
int16_t p2; int32_t p2;
int32_t p3; int32_t p3;
int32_t p4; int32_t p4;
}; };
@ -544,7 +544,7 @@ send_msg_command_list(
const uint16_t listLength, const uint16_t listLength,
const uint8_t commandID, const uint8_t commandID,
const uint8_t p1, const uint8_t p1,
const int16_t p2, const int32_t p2,
const int32_t p3, const int32_t p3,
const int32_t p4) const int32_t p4)
{ {
@ -556,7 +556,7 @@ send_msg_command_list(
_pack(__p, p2); _pack(__p, p2);
_pack(__p, p3); _pack(__p, p3);
_pack(__p, p4); _pack(__p, p4);
_encodeBuf.header.length = 16; _encodeBuf.header.length = 18;
_encodeBuf.header.messageID = MSG_COMMAND_LIST; _encodeBuf.header.messageID = MSG_COMMAND_LIST;
_encodeBuf.header.messageVersion = MSG_VERSION_1; _encodeBuf.header.messageVersion = MSG_VERSION_1;
_sendMessage(); _sendMessage();
@ -569,7 +569,7 @@ unpack_msg_command_list(
uint16_t &listLength, uint16_t &listLength,
uint8_t &commandID, uint8_t &commandID,
uint8_t &p1, uint8_t &p1,
int16_t &p2, int32_t &p2,
int32_t &p3, int32_t &p3,
int32_t &p4) int32_t &p4)
{ {