Skip to content

Allow the data stream rate to be set by the API #398

Open
@hamishwillee

Description

@hamishwillee

From gitter (@a7scenario)

Does DK2 have a way to "permanently” change the rate at with the autopilot streams a specific message type (or set of msg types in a MAV_DATA_STREAM set)? For whatever reason, sending a request_data_stream message only works for a couple seconds and then the autopilot reverts back to the previous rate.

msg = self.vehicle.message_factory.request_data_stream_encode(0, 0, mavutil.mavlink.MAV_DATA_STREAM_EXTRA3, new_rate, 1)
self.vehicle.send_mavlink(msg)
self.vehicle.flush()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions