Commit f830ce50 authored by Don Gagne's avatar Don Gagne

Update to new ROI command

parent 1ed4ee03
Subproject commit 5be9f5bf6002d58199cafafb5d416929fb8d8bcd
Subproject commit a31f7d989dffc2e554c26ad2c22c2a432a48fa74
......@@ -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
......
......@@ -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,
......
......@@ -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);
}
......
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