modules: mavlink: only include FUEL_STATUS stream if the dialect includes it

This commit is contained in:
Nuno Marques
2024-06-17 12:58:46 -07:00
parent a8cb5a7715
commit 450ae033e4
2 changed files with 18 additions and 6 deletions
+3 -1
View File
@@ -75,7 +75,6 @@
#include "streams/ESC_STATUS.hpp"
#include "streams/ESTIMATOR_STATUS.hpp"
#include "streams/EXTENDED_SYS_STATE.hpp"
#include "streams/FUEL_STATUS.hpp"
#include "streams/FLIGHT_INFORMATION.hpp"
#include "streams/GLOBAL_POSITION_INT.hpp"
#include "streams/GPS_GLOBAL_ORIGIN.hpp"
@@ -124,6 +123,9 @@
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
#include "streams/FIGURE_EIGHT_EXECUTION_STATUS.hpp"
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#if defined(MAVLINK_MSG_ID_FUEL_STATUS)
#include "streams/FUEL_STATUS.hpp"
#endif // MAVLINK_MSG_ID_FUEL_STATUS
#ifdef MAVLINK_MSG_ID_AVAILABLE_MODES // Only defined if development.xml is used
#include "streams/AVAILABLE_MODES.hpp"