GCS_MAVLink: allow for proxying of larger MAVLink messages on PX4

this makes it possible to deal with large MAVLink messages
This commit is contained in:
Andrew Tridgell 2014-03-11 13:48:25 +11:00
parent 11956ece7c
commit d9e8c34a89
1 changed files with 5 additions and 1 deletions

View File

@ -32,10 +32,14 @@
#include "include/mavlink/v1.0/ardupilotmega/version.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
// this allows us to make mavlink_message_t much smaller. It means we
// can't support the largest messages in common.xml, but we don't need
// those for APM
// those for APM1/APM2
#define MAVLINK_MAX_PAYLOAD_LEN 104
#else
#define MAVLINK_MAX_PAYLOAD_LEN 255
#endif
#include "include/mavlink/v1.0/mavlink_types.h"