From d9e8c34a89c6f8164e3a7c79e679d6ff9a7761fb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Mar 2014 13:48:25 +1100 Subject: [PATCH] GCS_MAVLink: allow for proxying of larger MAVLink messages on PX4 this makes it possible to deal with large MAVLink messages --- libraries/GCS_MAVLink/GCS_MAVLink.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_MAVLink.h b/libraries/GCS_MAVLink/GCS_MAVLink.h index 72e51cc730..616f5ef3db 100644 --- a/libraries/GCS_MAVLink/GCS_MAVLink.h +++ b/libraries/GCS_MAVLink/GCS_MAVLink.h @@ -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"