pololu / pololu-3pi-2040-robot

Example code for the Pololu 3pi+ 2040 Robot
MIT License
12 stars 5 forks source link

`LineSensorsReadMode::Off` & `LineSensorsReadMode::Manual` - Need for 2040 robot? #6

Open adamgreen opened 1 year ago

adamgreen commented 1 year ago

I noticed that the pololu-3pi-plus-32u4-arduino-library has a LineSensorReadMode enumerated type which allows running the line sensors with the emitters off or under user control. It seems like the C and MicroPython libraries for the 2040 only support the LineSensorReadMode::On mode. I could see how in general it might be useful to have an array of Ir light sensors facing somewhere other than down which could be used to detect/track Ir beacons/wands/etc in the environment. It seems like on the 3pi+ robots that the On mode is probably the only useful mode since they are pointed down at the floor and maybe that is why the MicroPython and C libraries for the 2040 only support this mode? I was looking at refactoring my 2040 Arduino library to use your cool C library but the only easy way I could use the line_sensors_*() functions would be to drop support for the Off and Manual modes. Since you have much more experience in this area, I was wondering what you think about this?