dronekit / dronekit-python

DroneKit-Python library for communicating with Drones via MAVLink.
https://readthedocs.org/projects/dronekit-python/
Apache License 2.0
1.59k stars 1.44k forks source link

Expose rate configuration #350

Open tcr3dr opened 9 years ago

tcr3dr commented 9 years ago

See https://github.com/dronekit/dronekit-python/commit/de461b6b606f45461cb2090b4d4da1cd9734b3a8.

  1. Does this need to be included as a connect param at all? i.e. Can this be done exclusively in a follow up configuration?
  2. What happens if None is passed, is there a "default"?
  3. What would a standalone vehicle.request_rate function look like and act like?
hamishwillee commented 9 years ago

Is this rate set using REQUEST_DATA_STREAM?

I don't know much about this, but my "understanding" is that all these will have defaults as per here - perhaps check with @rmackay ?. That means that it would not need to be in the connect param, and the default would be not to send the information :-)

Another consideration is that it looks like REQUEST_DATA_STREAM will be replaced by a per-message interval DATAMAV_CMD_SET_MESSAGEINTERVAL. It is also possible to set stream rates using [SR1](http://plane.ardupilot.com/wiki/arduplane-parameters/#sr1__parameters) and SR2_\ parameters - the message option is not persistent across reboots.