Commit e03bd3f4 authored by Julian Oes's avatar Julian Oes

UASControlWidget: add the option to select the OFFBOARD mode

parent f61167ca
......@@ -52,7 +52,7 @@ static struct full_mode_s modes_list_common[] = {
0 },
};
static struct full_mode_s modes_list_px4[4];
static struct full_mode_s modes_list_px4[5];
UASControlWidget::UASControlWidget(QWidget *parent) : QWidget(parent),
uasID(-1),
......@@ -88,6 +88,9 @@ void UASControlWidget::updateModesList()
modes_list_px4[3].baseMode = MAV_MODE_FLAG_CUSTOM_MODE_ENABLED | MAV_MODE_FLAG_AUTO_ENABLED | MAV_MODE_FLAG_STABILIZE_ENABLED | MAV_MODE_FLAG_GUIDED_ENABLED;
px4_cm.main_mode = PX4_CUSTOM_MAIN_MODE_AUTO;
modes_list_px4[3].customMode = px4_cm.data;
modes_list_px4[4].baseMode = MAV_MODE_FLAG_CUSTOM_MODE_ENABLED | MAV_MODE_FLAG_AUTO_ENABLED | MAV_MODE_FLAG_STABILIZE_ENABLED | MAV_MODE_FLAG_GUIDED_ENABLED;
px4_cm.main_mode = PX4_CUSTOM_MAIN_MODE_OFFBOARD;
modes_list_px4[4].customMode = px4_cm.data;
// Detect autopilot type
int autopilot = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment