Figure_of_eight: Make configuration dependent on defined mavlink_message_id.

This commit is contained in:
Konrad
2023-10-31 15:57:59 -04:00
committed by Daniel Agar
parent e3473a0f90
commit 1089079a32
5 changed files with 51 additions and 60 deletions
+10 -10
View File
@@ -1444,9 +1444,9 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream)
configure_stream_local("DEBUG_VECT", 1.0f);
configure_stream_local("NAMED_VALUE_FLOAT", 1.0f);
configure_stream_local("LINK_NODE_STATUS", 1.0f);
#ifdef CONFIG_FIGURE_OF_EIGHT
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
configure_stream_local("FIGURE_EIGHT_EXECUTION_STATUS", 5.0f);
#endif // CONFIG_FIGURE_OF_EIGHT
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#endif // !CONSTRAINED_FLASH
break;
@@ -1512,9 +1512,9 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream)
configure_stream_local("DEBUG_VECT", 10.0f);
configure_stream_local("NAMED_VALUE_FLOAT", 10.0f);
configure_stream_local("LINK_NODE_STATUS", 1.0f);
#ifdef CONFIG_FIGURE_OF_EIGHT
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
configure_stream_local("FIGURE_EIGHT_EXECUTION_STATUS", 5.0f);
#endif // CONFIG_FIGURE_OF_EIGHT
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#endif // !CONSTRAINED_FLASH
break;
@@ -1576,9 +1576,9 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream)
configure_stream_local("DEBUG_VECT", 1.0f);
configure_stream_local("NAMED_VALUE_FLOAT", 1.0f);
configure_stream_local("LINK_NODE_STATUS", 1.0f);
#ifdef CONFIG_FIGURE_OF_EIGHT
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
configure_stream_local("FIGURE_EIGHT_EXECUTION_STATUS", 2.0f);
#endif // CONFIG_FIGURE_OF_EIGHT
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#endif // !CONSTRAINED_FLASH
break;
@@ -1672,9 +1672,9 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream)
configure_stream_local("DEBUG_VECT", 50.0f);
configure_stream_local("NAMED_VALUE_FLOAT", 50.0f);
configure_stream_local("LINK_NODE_STATUS", 1.0f);
#ifdef CONFIG_FIGURE_OF_EIGHT
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
configure_stream_local("FIGURE_EIGHT_EXECUTION_STATUS", 5.0f);
#endif // CONFIG_FIGURE_OF_EIGHT
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#endif // !CONSTRAINED_FLASH
break;
@@ -1752,9 +1752,9 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream)
configure_stream_local("DEBUG_FLOAT_ARRAY", 1.0f);
configure_stream_local("DEBUG_VECT", 1.0f);
configure_stream_local("NAMED_VALUE_FLOAT", 1.0f);
#ifdef CONFIG_FIGURE_OF_EIGHT
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
configure_stream_local("FIGURE_EIGHT_EXECUTION_STATUS", 5.0f);
#endif // CONFIG_FIGURE_OF_EIGHT
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#endif // !CONSTRAINED_FLASH
break;
+2 -2
View File
@@ -120,9 +120,9 @@
#include "streams/VFR_HUD.hpp"
#include "streams/VIBRATION.hpp"
#include "streams/WIND_COV.hpp"
#ifdef CONFIG_FIGURE_OF_EIGHT
#if defined(MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS)
#include "streams/FIGURE_EIGHT_EXECUTION_STATUS.hpp"
#endif // CONFIG_FIGURE_OF_EIGHT
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
#if !defined(CONSTRAINED_FLASH)
# include "streams/ADSB_VEHICLE.hpp"