ive just updated to AC2.6 and therefore started using APM planner MAV 1.0

ive been working recently with the DO_SET_ROI command (only Yaw_mode 3 currently supported by AC - i mean to get all the modes working), and have come across an error when trying to write a mission containg this command to APM:

Requested value 'DO_SET_ROI' was not found.

at ArdupilotMega.GCSViews.FlightPlanner.saveWPs(Object sender, ProgressWorkerEventArgs e)

at ArdupilotMega.Controls.ProgressReporterDialogue.RunBackgroundOperation(Object o)

in AC2.5.5 this worked, i have simply added the command to mavcmd.xml, as its in the documentation i think it should really be standard:

<DO_SET_ROI>
<P1>Yaw_mode</P1>
<P2>WP ROI #</P2>
<P3></P3>
<P4></P4>
<X>Lat</X>
<Y>Long</Y>
<Z>Alt</Z>
</DO_SET_ROI>

------------------------

and .. now that im on the subject ..

when creating a mission with a DO_SET_ROI command, once focus is lost from the command its made invisible in the map view.  at least for yaw_mode = 3, which actually specifies a location to point at i think the command should stay visible on the map.  obviously its not part of the route so it shouldnt really appear as a waypoint on the planned route, but a marker just like the waypoints in a different colour would be great.

any chance of looking into these points?

regards,

james

Tags: 1.0, DO_SET_ROI, mavlink

Views: 224

Reply to This

Replies to This Discussion

michael,

now that youre back i wonder if youve seen this from a couple of weeks ago.

james

the whole issue here is that set ROI hasnt been implemented, and ac and ap dont have the command space to store all the settings in eeprom.

michael,

although i still have some hope that we will decide how best to implement more of the DO_SET_ROI specification, in the meantime i wonder if we can at least return to the functionality that we had in AC2.55 over MAVLink 0.9 (i dont remember exactly which version of MP)

i know the full specification is impossible with the current WP storage, but a DO_SET_ROI message with the parameters: [3, lat, long, alt] was working and is good enough for me to script some simple photography flights.

please, please, please!

james

it doesnt still work?

no, it throws this error when writing waypoints:

Requested value 'DO_SET_ROI' was not found.

at ArdupilotMega.GCSViews.FlightPlanner.saveWPs(Object sender, ProgressWorkerEventArgs e)

at ArdupilotMega.Controls.ProgressReporterDialogue.RunBackgroundOperation(Object o)

james

do set roi is no longer a valid command

nav_roi might work though.

what is the new packet for this? is this part of the ap_mount library?

no this has been in AC for some time (no idea how long), using yaw to orientate the whole craft towards the ROI.

it should obviously be closely related to the new AP_Mount code, but i didnt have much luck getting any details of how that would be scripted.

im looking at the differences between MAV_CMD_DO_SET_ROI and MAV_CMD_NAV_ROI and while they are similar its not exactly the same.  will have to go through it in more detail this evening.

regards,

james

               <entry value="80" name="MAV_CMD_NAV_ROI">
                    <description>Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.</description>
                    <param index="1">Region of intereset mode. (see MAV_ROI enum)</param>
                    <param index="2">MISSION index/ target ID. (see MAV_ROI enum)</param>
                    <param index="3">ROI index (allows a vehicle to manage multiple ROI's)</param>
                    <param index="4">Empty</param>
                    <param index="5">x the location of the fixed ROI (see MAV_FRAME)</param>
                    <param index="6">y</param>
                    <param index="7">z</param>
               </entry>

looks like what you want, which is just ROI in the planner the field names need changing though

DO_SET_ROI is in mavlink 0.9, but not in mavlink 1.0.  I'm not sure if it's intentional.  See https://groups.google.com/group/mavlink/browse_thread/thread/508971...

thanks john,

that certainly clears up the why its stopped working, where do you compare the mavlink definitions?

james

check

mavlink_mount_configure_t

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service