Code Monkey home page Code Monkey logo

Comments (3)

fdetro avatar fdetro commented on July 30, 2024

Do you already know which impact this has on the LEGO msensor classes?

Regarding the implementation: I understand that all uppercase commands are consistent with the original sensor modes, but on the other hand DC and servo motors do also have command attributes and there they are all lowercase. IMHO we should unify this.

from ev3dev-lang.

dlech avatar dlech commented on July 30, 2024

Does the commit message not explain it well enough? Or perhaps I am not understanding what you are asking.

The new attributes are present for all sensors, but in most cases will return an error. There are only 3 or so sensors that actually support commands at the moment.

With regard to mode names, in the case of UART sensors, the name is actually sent from the sensor, so I would like to stick with upper case to be consistent with this. Unfortunately, this is not consistent with most other driver in Linux as they tend to use lower case for everything. I would be OK with changing the commands in the motor classes to upper case though.

from ev3dev-lang.

dlech avatar dlech commented on July 30, 2024

Actually, after giving it some more though. There are more places where we have modes and commands other that just motor classes (i.e. input and output ports have modes). I'm thinking it would be better to just leave msensor class all uppercase (because of UART sensors) and have everything else lowercase.

from ev3dev-lang.

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.