SITL: enable failure command (SYS_FAILURE_EN=1)

This commit is contained in:
Beat Küng
2022-06-03 12:34:53 +02:00
parent 56faaae959
commit 8bf18e31be
3 changed files with 8 additions and 0 deletions

View File

@@ -139,6 +139,11 @@ public:
// Blocking call to get the drone's current position in NED frame
std::array<float, 3> get_current_position_ned();
void set_param_int(const std::string &param, int32_t value)
{
CHECK(_param->set_param_int(param, value) == Param::Result::Success);
}
protected:
mavsdk::Param *getParams() const { return _param.get();}
mavsdk::Telemetry *getTelemetry() const { return _telemetry.get();}