You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
@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.
@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.
Activity
tcr3dr commentedon Oct 8, 2015
Bonus: I don't have to re-implement the RC module, which is currently unimplemented.
hamishwillee commentedon Oct 8, 2015
@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.
hamishwillee commentedon Oct 8, 2015
or I can implement it ... if the module "pattern" you're using is obvious so I can copy it.
hamishwillee commentedon Oct 8, 2015
@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.
eliao commentedon Oct 9, 2015
I think the APM devs would heavily discourage any usage of RC Override.
hamishwillee commentedon Oct 9, 2015
@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.
Chambana commentedon Oct 9, 2015
Regardless of whether the examples are pulled from the documentation, please leave the RC override capability in API for development purposes.
[-]DKPY2: Remove RC override examples[/-][+]DKPY2: Refactor RC override examples[/+]tcr3dr commentedon Oct 9, 2015
Agreed that these need to exist for development purposes and should not be removed.
Addresses #329 by creating a stand-alone channel overrides example an…
hamishwillee commentedon Oct 13, 2015
#335 adds the rc-override code/docs back as a "standalone" example. It isn't tested yet but this can probably still be merged.
Addresses #329 by creating a stand-alone channel overrides example an…
Addresses #329 by creating a stand-alone channel overrides example an…
tcr3dr commentedon Nov 7, 2015
See #427.
hamishwillee commentedon Nov 9, 2015
Good. This was done. Will have to be done again for #427.