Open Roberta

Fix EV3 simulator colour sensor

Background

This is a GitHub task, make sure to read the info.

Task

The EV3 simulator of our lab has a color sensor. This sensor can be used in different ways, one of which allows to read the RGB values of the color.

The RGB values are 3 numbers, but they can be represented in different ranges: the more common ones are 0-255, 0-100 and 0-1024. To keep the user experience consistent, in our Lab we try to use the same range for all the robots and the simulators. Unfortunately, the EV3 simulator returns values is a range different from the one used by the real robot. Specifically, we want to read values in the 0-255 range, but we currently read them in the 0-100 range.

To keep track of this issue, we created the GitHub issue #185.

Deliverables

Send a pull request that fixes the simulator.

Task tags

  • github
  • advanced

Students who completed this task

Aria

Task type

  • code Code
close

2019