From 2b40f56bdd7769ee600472e39fccc9123f619075 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Mon, 19 Apr 2021 15:58:52 +0200 Subject: [PATCH] Camera sensor: correct a massive freaking typo This caused a huge bug when testing the striker i'm dumb --- src/sensors/data_source_camera_conicmirror.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sensors/data_source_camera_conicmirror.cpp b/src/sensors/data_source_camera_conicmirror.cpp index 7a593bc..e463695 100644 --- a/src/sensors/data_source_camera_conicmirror.cpp +++ b/src/sensors/data_source_camera_conicmirror.cpp @@ -135,7 +135,7 @@ void DataSourceCameraConic ::computeCoordsAngles() { CURRENT_DATA_WRITE.defSeen = CURRENT_DATA_WRITE.bSeen; } else { CURRENT_DATA_WRITE.angleAtk = CURRENT_DATA_WRITE.bAngle; - CURRENT_DATA_WRITE.angleAtkFix = CURRENT_DATA_WRITE.yAngleFix; + CURRENT_DATA_WRITE.angleAtkFix = CURRENT_DATA_WRITE.bAngleFix; CURRENT_DATA_WRITE.atkSeen = CURRENT_DATA_WRITE.bSeen; CURRENT_DATA_WRITE.angleDef = CURRENT_DATA_WRITE.yAngle; CURRENT_DATA_WRITE.angleDefFix = CURRENT_DATA_WRITE.yAngleFix; @@ -144,7 +144,6 @@ void DataSourceCameraConic ::computeCoordsAngles() { } void DataSourceCameraConic::test(){ - goalOrientation = digitalRead(SWITCH_2); //se HIGH attacco gialla, difendo blu update(); DEBUG.print("Blue: Angle: "); DEBUG.print(bAngle);