We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954c6c5 commit 5269e5fCopy full SHA for 5269e5f
src/mavsdk/plugins/failure/failure_impl.cpp
@@ -1,4 +1,5 @@
1
#include "failure_impl.h"
2
+#include "autopilot.h"
3
4
namespace mavsdk {
5
@@ -23,6 +24,12 @@ void FailureImpl::deinit() {}
23
24
25
void FailureImpl::enable()
26
{
27
+ // Only PX4 implements the SYS_FAILURE_EN param.
28
+ if (_system_impl->effective_autopilot() != Autopilot::Px4) {
29
+ _enabled = EnabledState::Unknown;
30
+ return;
31
+ }
32
+
33
constexpr auto param_name = "SYS_FAILURE_EN";
34
35
_system_impl->get_param_int_async(
0 commit comments