diff options
Diffstat (limited to 'Venus_Skeleton/Venus_Skeleton.ino')
-rw-r--r-- | Venus_Skeleton/Venus_Skeleton.ino | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Venus_Skeleton/Venus_Skeleton.ino b/Venus_Skeleton/Venus_Skeleton.ino index 269bc34..7174c1a 100644 --- a/Venus_Skeleton/Venus_Skeleton.ino +++ b/Venus_Skeleton/Venus_Skeleton.ino @@ -773,7 +773,9 @@ void checkSample() { // If sample is straight ahead, position the turret to the front such // that the IR sensor can get a confirmation. if (data.sample_gripper_detected) { - counterTurret = NUM_TURRET_DIRECTIONS / 2; + // If turretSequence has odd number of entries, there is a straight forward position at the NUM/4 index. + // See initTurretSequence function for more information. + counterTurret = NUM_TURRET_DIRECTIONS / 4; } } } |