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
{{ message }}
Repository navigation
How do you register/observe changes to a particular Vehicle parameter #89
class Parameters implements HasObservers interface, and it should therefore be possible to register to observe parameter changes (this is also indicated by the original documents).
I tried this, but while the code will run, the observer is not called (possibly because THR_MIN is not an attribute):
@mrpollo I think "we" should add this by implementing add_attribute_observer in Parameter class. The question is, will it be done in a timely manner, or should I update the documentation now to reflect that it is not possible right now?
Documentation fixed by #108. Closing. Note that I couldn't hide the observer methods in Parameters (because same documentation is used for Vehicle class). So what I did is add a disclaimer above them indicating that the methods aren't impelemtned.
Activity
geeksville commentedon May 12, 2015
This is meant to be supported and if it doesn't work it would be easy to add.
hamishwillee commentedon May 12, 2015
Thanks @geeksville
@mrpollo I think "we" should add this by implementing add_attribute_observer in Parameter class. The question is, will it be done in a timely manner, or should I update the documentation now to reflect that it is not possible right now?
mrpollo commentedon May 13, 2015
update docs to reflect current state of API and please create a new issue assigned to me to add this feature
@geeksville thanks!
hamishwillee commentedon May 13, 2015
OK, #107 is the issue for the missing functionality. Am assigning current issue to me to fix the docs.
Fixes to parameters docs, removal of docs for non-implemented fuction…
hamishwillee commentedon May 13, 2015
Documentation fixed by #108. Closing. Note that I couldn't hide the observer methods in Parameters (because same documentation is used for Vehicle class). So what I did is add a disclaimer above them indicating that the methods aren't impelemtned.