This is what the wiki says:
DO_SET_ROI
Yaw tracking option | ALtitude (in meters) | Latitude | Longitude |
- Setting will persist until reboot
- The location is optional
- The option is a number from 0 to 4
- MAV_ROI_NONE = 0: Yaw will hold it's current angle
- MAV_ROI_WPNEXT = 1: Yaw will point at next WP
- MAV_ROI_WPINDEX = 2: Yaw will point at the desired WP at the index #
- MAV_ROI_LOCATION = 3: Yaw will point at the indicated location (The location in the command)
- MAV_ROI_TARGET = 4: Not implemented
But in the mission planner, there is Command, P1, P2, P3, P4, Lat Lon Alt.
How do I fill these boxes in to get my XCopter to point at a ROI? For example, launch, fly to an area, set the XCopter to face a location while navigating a course, then return the Xcopter to normal facing (forward?), and continue on to the end of the mission. In other words, do a fly-by with my forward facing fixed camera pointed where I want. I think this is what the ROI command in mission planner is for, but I can't find the details on how to set it.
Replies
Full chain: my fingers - 9XR - OrangeTX - Orange RX R910 - APM 2.5 - Radio Link 3DR - (APM Planner 2.0.4 on OSX 10.9 / Mission Planner V1.3.6 on windows 7)
void
AP_Mount::update_mount_type()
{
bool have_roll, have_tilt, have_pan;
have_roll = RC_Channel_aux::function_assigned(RC_Channel_aux::k_mount_roll) ||
RC_Channel_aux::function_assigned(RC_Channel_aux::k_mount2_roll);
have_tilt = RC_Channel_aux::function_assigned(RC_Channel_aux::k_mount_tilt) ||
RC_Channel_aux::function_assigned(RC_Channel_aux::k_mount2_tilt);
have_pan = RC_Channel_aux::function_assigned(RC_Channel_aux::k_mount_pan) ||
RC_Channel_aux::function_assigned(RC_Channel_aux::k_mount2_pan);
if (have_pan && have_tilt && !have_roll) {
_mount_type = k_pan_tilt;
}
if (!have_pan && have_tilt && have_roll) {
_mount_type = k_tilt_roll;
}
if (have_pan && have_tilt && have_roll) {
_mount_type = k_pan_tilt_roll;
}
}
Additional information about Flight Plan page:
DO_SET_ROI is not available in APM Planner V2.0.14.
DO_SET_ROI is available in Mission Planner V1.3.7.
If you set a mission with Mission planner with DO_SET_ROI and read the mission with APM Planner, the command will appears as command 201.
I have what I think is a really silly question for you guys... as a fairly new person and someone who doesn't script by any means or know anything about it. But the idea is in my head and I'm just thinking out loud (sort of speak)
I know ROI will point camera in that general area, and the Follow Me feature pretty much tracks the other target via gps but I found this open source video tracking software online which got me thinking... It claims to be fairly simple python code (about 40 lines or so) which I have NO idea if it's even possible. But would there be any way of incorporating something like to actually track objects without means of gps? The website is here: http://openvisionc.sourceforge.net/ I'm probobly just talking out of my ass..but I was curious if since it's open source if it could be incorporated by someone savy person to provide a legitimate targeting option for our UAV's? Without having to pay crazy amounts of money for a real targeting options for uav's? Just putting it out there..
Ok, thanks for the explanation Michael and congrats for the great job. Could you please explain the meaning of each settings (fields) on the way point row? For example I have tried to set the yaw angle as the quad follow the route faced always to one direction but the board doesn't store the value. It will be set always back to zero. This function is not accepted or I have misunderstood the meaning. Also please explain the meaning of "Hit rad" and what is planned for the P3 empty column.
I just figured it out!
To use this, right click on the map and "Set ROI". Duh!
I'm heading out to test.
I'm guessing nobody has tried this feature?
What *is* ROI?