Browse Source

MAVLink: enable separate MAVLink helpers

this makes the core MAVLink functions into library calls, instead of
being inlined. The resulting code size doesn't change, but it means we
can safely call MAVLink functions from multiple places without causing
undue code bloat
master
Andrew Tridgell 14 years ago
parent
commit
edd7e509d9
  1. 2
      libraries/GCS_MAVLink/GCS_MAVLink.cpp
  2. 2
      libraries/GCS_MAVLink/GCS_MAVLink.h

2
libraries/GCS_MAVLink/GCS_MAVLink.cpp

@ -10,3 +10,5 @@ BetterStream *mavlink_comm_1_port; @@ -10,3 +10,5 @@ BetterStream *mavlink_comm_1_port;
// this might need to move to the flight software
mavlink_system_t mavlink_system = {7,1,0,0};
#include "include/mavlink_helpers.h"

2
libraries/GCS_MAVLink/GCS_MAVLink.h

@ -8,6 +8,8 @@ @@ -8,6 +8,8 @@
#include <BetterStream.h>
#define MAVLINK_SEPARATE_HELPERS
#include "include/ardupilotmega/version.h"
// this allows us to make mavlink_message_t much smaller

Loading…
Cancel
Save