Skip to content

DKPY2: Refactor RC override examples #329

Closed

Description

@tcr3dr

I think it's appropriate to remove the RC override examples in DKPY2.

My primary motivation is not that this is unsafe user behavior (it can be but that's not relevant), but rather that this does not work on Solo, which has its own pipeline for RC controls. As a result, we don't have a generic way of this working even in the case of Python code, so we may want to approach this differently in the future.

For example, the dronekit.sitl package can include its own RC functions (the MAVProxy module actually is fixed to SITL output anyway); dronekit.solo could do likewise. But Dronekit core would not include these.

Activity

  1. tcr3dr commented on Oct 8, 2015

    @tcr3dr
    ContributorAuthor

    Bonus: I don't have to re-implement the RC module, which is currently unimplemented.

  2. hamishwillee commented on Oct 8, 2015

    @hamishwillee
    Contributor

    @tcr3dr @mrpollo I disagree. This will work on most platforms and there is a standard way to do it. One device should not fragment the core so that you have to have an extra library for every variant.

    Is it possible to define an API that would work for Solo and "generic MAVLink"?

    If you don't want to implement this module for v2.0 could we still have the API definition and Vehicle.channel_override can return 'None". I will then document it as not supported in the current version.

  3. hamishwillee commented on Oct 8, 2015

    @hamishwillee
    Contributor

    or I can implement it ... if the module "pattern" you're using is obvious so I can copy it.

  4. hamishwillee commented on Oct 8, 2015

    @hamishwillee
    Contributor

    @tcr3dr Counter-argument? IMO this is something used by developers now for "good reasons". If its not going to work on Solo that is a pain, but we shouldn't hobble DKPY2.0 for other vehicles.

  5. eliao commented on Oct 9, 2015

    @eliao

    I think the APM devs would heavily discourage any usage of RC Override.

  6. hamishwillee commented on Oct 9, 2015

    @hamishwillee
    Contributor

    @eliao They absolutely do discourage mis-use. The main use case is for the creation of virtual sticks, and you could reasonably argue that on a platform that is intended for Companion Computers it isn't needed. But ... some people do want to use them and there have been a couple of cases where I couldn't actually find an alternative way of doing something without them.

  7. Chambana commented on Oct 9, 2015

    @Chambana

    Regardless of whether the examples are pulled from the documentation, please leave the RC override capability in API for development purposes.

  8. changed the title [-]DKPY2: Remove RC override examples[/-] [+]DKPY2: Refactor RC override examples[/+] on Oct 9, 2015
  9. tcr3dr commented on Oct 9, 2015

    @tcr3dr
    ContributorAuthor

    Agreed that these need to exist for development purposes and should not be removed.

  10. added a commit that references this issue on Oct 13, 2015
  11. hamishwillee commented on Oct 13, 2015

    @hamishwillee
    Contributor

    #335 adds the rc-override code/docs back as a "standalone" example. It isn't tested yet but this can probably still be merged.

  12. modified the milestone: v2.0.0 on Oct 14, 2015
  13. added a commit that references this issue on Oct 15, 2015
  14. added a commit that references this issue on Oct 22, 2015
  15. tcr3dr commented on Nov 7, 2015

    @tcr3dr
    ContributorAuthor

    See #427.

  16. hamishwillee commented on Nov 9, 2015

    @hamishwillee
    Contributor

    Good. This was done. Will have to be done again for #427.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions