BCLab-UNM / SwarmathonIV-Cabrillo-Public

Swarmathon code repository for Cabrillo College
MIT License
6 stars 1 forks source link

Driver's GOAL_DISTANCE_OK causes pickup to stop short #210

Closed darrenchurchill closed 5 years ago

darrenchurchill commented 5 years ago

One of the methods the driver uses to decide when to stop driving forward is calculating whether it's at the goal location yet. For the at_goal test, it assumes it's reached the goal as soon as the rover is within GOAL_DISTANCE_OK / 2 meters.

If the rover is driving slow and only a short distance:

This means the rover will usually stop short by GOAL_DISTANCE_OK / 2 meters, or ~5cm given the current parameter value (0.1 m).

Since the driver has two methods of deciding whether it should stop, it might be useful to reduce GOAL_DISTANCE_OK to something like 0.05.

Carter90 commented 5 years ago

Should be good now #216