I am planning on making an auton code that after running all its code it will test to see of the opposing tea. Threw over a cube by using sonar readings to test for new objects. The only problem that I’ve thought of is the robot’s sonars picking up on another robot’s body and then the robot would try to pick it up. Is there a way for my robot to differentiate sonar readings between a cube and robot or am I just out of luck.
To be honest, the sonar sensor isn’t the best at sensing cubes because they are cloth and have an irregularly shaped. I think that your best course of action would be to make sure that the other team’s autonomous wouldn’t get in the way of yours. One way we prevented other teams from throwing cubes over was by leaving our claw open and our arm on top of the fence.