Browse Source

Update to new ROI command

QGC4.4
Don Gagne 7 years ago
parent
commit
f830ce5078
  1. 2
      libs/mavlink/include/mavlink/v2.0
  2. 2
      src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
  3. 46
      src/MissionManager/MavCmdInfoCommon.json
  4. 8
      src/comm/MockLink.cc

2
libs/mavlink/include/mavlink/v2.0

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 5be9f5bf6002d58199cafafb5d416929fb8d8bcd
Subproject commit a31f7d989dffc2e554c26ad2c22c2a432a48fa74

2
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc

@ -290,7 +290,7 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void) @@ -290,7 +290,7 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
<< MAV_CMD_DO_SET_SERVO
<< MAV_CMD_DO_CHANGE_SPEED
<< MAV_CMD_DO_LAND_START
<< MAV_CMD_DO_SET_ROI
<< MAV_CMD_DO_SET_ROI_LOCATION << MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET << MAV_CMD_DO_SET_ROI_NONE
<< MAV_CMD_DO_MOUNT_CONFIGURE
<< MAV_CMD_DO_MOUNT_CONTROL
<< MAV_CMD_SET_CAMERA_MODE

46
src/MissionManager/MavCmdInfoCommon.json

@ -624,6 +624,52 @@ @@ -624,6 +624,52 @@
"default": 0
}
},
{
"id": 195,
"rawName": "MAV_CMD_DO_SET_ROI_LOCATION",
"friendlyName": "Region of interest (ROI)" ,
"description": "Sets the region of interest for cameras.",
"specifiesCoordinate": true,
"standaloneCoordinate": true,
"friendlyEdit": true,
"category": "Camera"
},
{
"id": 196,
"rawName": "MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET",
"friendlyName": "ROI to next waypoint" ,
"description": "Sets the region of interest to point towards the next waypoint with optional offsets.",
"specifiesCoordinate": false,
"friendlyEdit": true,
"category": "Camera",
"param5": {
"label": "Pitch offset",
"default": 0,
"units": "deg",
"decimalPlaces": 0
},
"param6": {
"label": "Roll offset",
"default": 0,
"units": "deg",
"decimalPlaces": 0
},
"param7": {
"label": "Yaw offset",
"default": 0,
"units": "deg",
"decimalPlaces": 0
}
},
{
"id": 197,
"rawName": "MAV_CMD_DO_SET_ROI_NONE",
"friendlyName": "Cancel ROI" ,
"description": "Cancels the region of interest.",
"specifiesCoordinate": false,
"friendlyEdit": true,
"category": "Camera"
},
{ "id": 200, "rawName": "MAV_CMD_DO_CONTROL_VIDEO", "friendlyName": "Control video" },
{
"id": 201,

8
src/comm/MockLink.cc

@ -914,12 +914,8 @@ void MockLink::_respondWithAutopilotVersion(void) @@ -914,12 +914,8 @@ void MockLink::_respondWithAutopilotVersion(void)
(uint8_t *)&customVersion, // os_custom_version,
0, // vendor_id,
0, // product_id,
0 // uid
#if defined(NO_ARDUPILOT_DIALECT)
//-- Once the MAVLink module is updated, this should show up. In the mean time, it's disabled.
,0 // uid2
#endif
);
0, // uid
0); // uid2
respondWithMavlinkMessage(msg);
}

Loading…
Cancel
Save