Page 1 of 1

Increase footbot proximity sensor range

Posted: Tue Mar 10, 2020 9:09 pm
by andraspatka
Hello,

Is there any way to increase the footbot proxmity sensor's range? (so obstacles from further away can be detected). If so, then how?

Thanks in advance!

Re: Increase footbot proximity sensor range

Posted: Tue Mar 10, 2020 9:57 pm
by pincy
Not without recompiling the code of the robot you're using, unfortunately.

Re: Increase footbot proximity sensor range

Posted: Wed Mar 11, 2020 10:57 am
by andraspatka
I understand. Could I get some guidance as to what exactly needs to be modified in order to achieve this? I looked through the code and couldn't exactly find it.

Thanks in advance!

Re: Increase footbot proximity sensor range

Posted: Wed Mar 11, 2020 7:34 pm
by andraspatka
In the meantime I found where the code needs to be changed in order to achieve what I'm trying to do. Thanks anyways, I'm posting the solution so if anyone else encounters such a problem, they can find the solution quickly :D
In the footbot_entity.cpp the PROXIMITY_SENSOR_RING_RANGE constant determines the length of the proximity sensor. By increasing this, the sensor range is increased as well.

Re: Increase footbot proximity sensor range

Posted: Mon Mar 30, 2020 5:37 pm
by Ryan
Maybe you can use the distance_scanner to achieve the same function