Activiation of collision detection via C++


Hi there,

I am wondering what is the suitable API function in C++ one can use to activate the collision detection and change its level?

thanks and regards



Hi helkoulak,

We have added an API for changing collision detection levels in the latest version of the protocol. You will need to modify the socketutils.cpp file to add functions.


Hi Hans,

thank you for your reply. I have modified the files socketutils.cpp and socketutils.h and added the function

int TCPClient::SetCollisionLevel(int level){
stringstream fmt;
fmt << “SetCollisionLevel(” << level << “)”;
printf("%s\n", fmt.str().c_str());
char bufRev[1024] = { 0 };
return SendAndRecvData(fmt.str().c_str(), bufRev);

But still the collision detection is not working. Is there an API function to activate first the collision detection before changing its level, or does SetCollisionLevel() activate collision detection and changes the level at the same time?

Thanks and regards



This function requires controller version, you need to check if it is that version


Thanks for the quick reply. I have currently the 1.5.4. Could you please send me the link for the new firmware version?

Thanks and regards,