summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter de Kok <p.j.s.d.kok@gmail.com>2015-06-17 16:15:09 +0200
committerPeter de Kok <p.j.s.d.kok@gmail.com>2015-06-17 16:15:09 +0200
commitf904c611c9382efee8c76c0400b44030e126f583 (patch)
treed80589c56bf53d1667a4be916f3360293b4c0d6a
parent98f5cc947880fa0f05b76d1d3861f973184b12cb (diff)
downloadcode-f904c611c9382efee8c76c0400b44030e126f583.tar.gz
fixed counterTurret error (false fix reverted)
-rw-r--r--Venus_Skeleton/Venus_Skeleton.ino4
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;
}
}
}