summaryrefslogtreecommitdiff
path: root/Venus_Skeleton/Venus_Skeleton.ino
diff options
context:
space:
mode:
Diffstat (limited to 'Venus_Skeleton/Venus_Skeleton.ino')
-rw-r--r--Venus_Skeleton/Venus_Skeleton.ino4
1 files changed, 2 insertions, 2 deletions
diff --git a/Venus_Skeleton/Venus_Skeleton.ino b/Venus_Skeleton/Venus_Skeleton.ino
index 7ed20a0..c9481e2 100644
--- a/Venus_Skeleton/Venus_Skeleton.ino
+++ b/Venus_Skeleton/Venus_Skeleton.ino
@@ -752,7 +752,7 @@ bool confirmSample(int turretVal) {
int x = CAL_SAMPLE_TURRET_MAX_DIST * sin((checkTurretDegAbs/180.0)*PI);
int y = CAL_SAMPLE_TURRET_MAX_DIST * cos((checkTurretDegAbs/180.0)*PI) + CAL_TURRET_TO_CENTER_DIST;
- int currValDirectionDegree = (int)((atan2(x / y)/PI) * 180.0 ) + 10;
+ int currValDirectionDegree = (int)((atan2(x, y)/PI) * 180.0 ) + 10;
counterSampleConfirm++;
} else {
@@ -886,7 +886,7 @@ void loop() {
confirmSample(counterTurret);
moveTurnToDeg(currValDirectionDegree);
- moveStraight(currValDirectionDegree);
+ moveStraight(currValDirectionDegree, 10.0);