Skip to content

Add information about clearing ROI #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2015

Conversation

hamishwillee
Copy link
Contributor

Found information about clearing ROI in this post: #20 (comment)

I tested this and it works. I didn't add test code demonstrating it. I could if this is considered useful?

@djnugent
Copy link

djnugent commented Jul 7, 2015

@hamishwillee This isn't really a dronekit feature more of a arducopter/mavlink feature so I trust that it works. I have never needed to use it but I think is important we document it.

@mrpollo +1

@hamishwillee
Copy link
Contributor Author

@tcr3dr This can be merged please. It is a minor docs enhancement.

@@ -303,9 +303,10 @@ Send the `MAV_CMD_DO_SET_ROI <http://copter.ardupilot.com/common-mavlink-mission
vehicle.send_mavlink(msg)
vehicle.flush()

The ROI is "reset" when the mode or the method used to control movement is changed. If you've set a yaw or region-of-interest value then this will be set to the default (vehicle faces the direction of travel).
From Copter 3.2.1 you can explicitly reset the ROI by sending the `MAV_CMD_DO_SET_ROI <http://copter.ardupilot.com/common-mavlink-mission-command-messages-mav_cmd/#mav_cmd_do_set_roi>`_ command with zero in all values. The vehicle will then face the direction of travel.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was still a bit unclear; I would propose text that addresses:

  • "Available since version X" reads less ambiguously than "From", and is more familiar (i.e. Python docs)
  • Is "all values" correct, as in lat/lon/alt also need to be 0? Is it more correct to say "all params"?
  • "vehicle will then..." seems to need an active verb

And some proposed text:

Available since Copter 3.2.1: you can explicitly reset the ROI by sending the MAV_CMD_DO_SET_ROI command with zero in all parameters. The vehicle will return to face the direction of travel.

@tcr3dr
Copy link
Contributor

tcr3dr commented Jul 8, 2015

@hamishwillee Added a comment since I found the wording a bit ambiguous. Review, change if desired, and I'll merge after your go-ahead.

@hamishwillee
Copy link
Contributor Author

@tcr3dr Thanks for the review - I find it hard to be objective about my text at the point I write it.

I've now used the sphinx ".. versionadded::" directive which prefixes the text with "New in version" (I will get Kaitlyn to update the theme to highlight this like a note). I think using semantic markup in source is better because it allows for global change.

For the final sentence I changed it to "The front of the vehicle will then follow the direction of travel.". I think "follow" makes it clear that this isn't a one off change to face the direction of travel.

Please merge if you're happy, and thanks again.

@tcr3dr
Copy link
Contributor

tcr3dr commented Jul 16, 2015

@hamishwillee This looks great! And I feel we'll be addressing version-specific features more as we move along, so a useful foray into it.

tcr3dr added a commit that referenced this pull request Jul 16, 2015
Add information about clearing ROI
@tcr3dr tcr3dr merged commit 50b650a into dronekit:master Jul 16, 2015
@hamishwillee hamishwillee deleted the tmp_roi_doc_fix branch July 16, 2015 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants