Skip to content

Improve Rangefinder attributed documentation - #184

Closed
hamishwillee wants to merge 3 commits into
dronekit:masterfrom
hamishwillee:tmp_rangefinder_docs
Closed

hamishwillee wants to merge 3 commits into
dronekit:masterfrom
hamishwillee:tmp_rangefinder_docs

Conversation

@hamishwillee

Copy link
Copy Markdown
Contributor
  1. Added vehicle.rangefinder attributed (only the class was documented). Updated class with units information and information about what happens if rangefinder not supported (returns None).
  2. Updated the vehicle_state example and example docs to report the rangefinder values. The example docs now link to information on setting up simulated rangefinder. I took the option to change the Vehicle variable name from "v" to "vehicle" (purely for consistency with other examples) and tidy up the introductory text.
  3. Updated the vehicle state guide to list the new attributes and show how they are obtained. I updated the section on using the observer to show how you can cache the value from the callback. I also made this behaviour sound less like a bug (Attribute observer callbacks are called with heartbeat until disabled - after first called #60).

@tcr3dr

tcr3dr commented Jul 16, 2015

Copy link
Copy Markdown
Contributor

As I mentioned in #60, I think documenting the current behavior is the right way to go. I'll follow up by reviewing this PR.

tcr3dr added a commit that referenced this pull request Jul 24, 2015
@tcr3dr

tcr3dr commented Jul 24, 2015

Copy link
Copy Markdown
Contributor

Merged via #237.

@tcr3dr tcr3dr closed this Jul 24, 2015
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.

2 participants