Coder Social home page Coder Social logo

Comments (1)

clalancette avatar clalancette commented on July 29, 2024

@clalancette nice work on the upgrade to Phidget22 in the dashing branch, thank you!

You are welcome.

I was playing with a DC Motor Phidget and I noticed that although the DCMotor class API lists getBackEMF, none of the DC Motor Phidget APIs actually seem to support that function. So when I run your code I get a "[component_container-1] [ERROR] [phidgets_motors]: Motors: Failed to get back EMF for Motor channel 0: Operation Not Supported" error.

Hm, interesting. I'm pretty sure I tested it at one point and it worked with the Motor Phidget I had, but that was a while ago. I'll have to go back and test it again (probably next week).

I am happy to help you fix this or to do more testing if you do not have time. In ROS, is it better practice to not even create a publisher on an unsupported topic or is it better to publish some dummy value?

Yeah, I think it would be best for you to fix it and open a PR, as I have no good way to test it. As far as whether it is better to not publish or publish a dummy value, it is kind of a case-by-case basis. In this case I think it is most consistent with the rest of this driver to just not create the publisher at all. That way you won't be publishing bogus information.

Thanks for the report, feel free to ping me on any pull request you open.

from phidgets_drivers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.