ev3dev / ev3dev-lang-python

Pure python bindings for ev3dev
MIT License
428 stars 145 forks source link

Methods for sensor classes are missing "self" as first arg #161

Closed dwalton76 closed 8 years ago

dwalton76 commented 8 years ago

InfraredSensor for example has

    def proximity():
        """
        A measurement of the distance between the sensor and the remote,
        as a percentage. 100% is approximately 70cm/27in.
        """
        self.mode = MODE_IR_PROX
        return self.value(0)

"self" should be the first arg here. I'm not clear on how the autogenerated parts of core.py are autogenerated though...any pointers on how to fix this?

dwalton76 commented 8 years ago

Sorry this is a dup of #153