diff options
author | Peter de Kok <p.j.s.d.kok@gmail.com> | 2015-06-17 16:15:09 +0200 |
---|---|---|
committer | Peter de Kok <p.j.s.d.kok@gmail.com> | 2015-06-17 16:15:09 +0200 |
commit | f904c611c9382efee8c76c0400b44030e126f583 (patch) | |
tree | d80589c56bf53d1667a4be916f3360293b4c0d6a /Venus_Skeleton | |
parent | 98f5cc947880fa0f05b76d1d3861f973184b12cb (diff) | |
download | code-f904c611c9382efee8c76c0400b44030e126f583.tar.gz |
fixed counterTurret error (false fix reverted)
Diffstat (limited to 'Venus_Skeleton')
-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; } } } |