Ev3dev: Color sensor not plugged (brick.h)

Created on 26 Apr 2017  路  3Comments  路  Source: ev3dev/ev3dev

Hello,

I am using ev3dev-c in Lego ev3 31313 robots.

I am trying to check if my color sensors are plugged in the ports I indicate, using the function from brick.h " sensor_is_plugged( POOL_T pool, INX_T type_inx );". This function returns a 0 indicating that the sensors are not plugged but I can see in the robots display in Device Browser/Sensors that I have a lego-ev3-color connected.

I have check if the port I indicate is the same, and it is the same. I don't know what is the problem.
I am using the function like sensor_is_plugged( INPUT_2, LEGO_EV3_COLOR);

What can be the problem? and/or How can I solve it?

Thank you in advance.

question

All 3 comments

cc: @in4lio

Thank you @dlech !

Hello @almsv -- Unfortunately, I do not have a Color Sensor right now. I'll check the problem in a few days.

Is the sensor visible in the lego-sensor directory: /sys/class/lego-sensor/?

Hello again @almsv

I brought the library to the actual state -- I found a few changes in the kernel that I missed, checked and fixed all examples. Now it works with the kernel 4.4.61-20-ev3dev-ev3. Thank you for reporting this problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AXKuhta picture AXKuhta  路  8Comments

lpinfinity picture lpinfinity  路  8Comments

LEXUGE picture LEXUGE  路  6Comments

dlech picture dlech  路  5Comments

jamesc601 picture jamesc601  路  6Comments