Camera sensor: correct a massive freaking typo

This caused a huge bug when testing the striker
i'm dumb
pull/1/head
EmaMaker 2021-04-19 15:58:52 +02:00
parent 5197fa0895
commit 2b40f56bdd
1 changed files with 1 additions and 2 deletions

View File

@ -135,7 +135,7 @@ void DataSourceCameraConic ::computeCoordsAngles() {
CURRENT_DATA_WRITE.defSeen = CURRENT_DATA_WRITE.bSeen; CURRENT_DATA_WRITE.defSeen = CURRENT_DATA_WRITE.bSeen;
} else { } else {
CURRENT_DATA_WRITE.angleAtk = CURRENT_DATA_WRITE.bAngle; 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.atkSeen = CURRENT_DATA_WRITE.bSeen;
CURRENT_DATA_WRITE.angleDef = CURRENT_DATA_WRITE.yAngle; CURRENT_DATA_WRITE.angleDef = CURRENT_DATA_WRITE.yAngle;
CURRENT_DATA_WRITE.angleDefFix = CURRENT_DATA_WRITE.yAngleFix; CURRENT_DATA_WRITE.angleDefFix = CURRENT_DATA_WRITE.yAngleFix;
@ -144,7 +144,6 @@ void DataSourceCameraConic ::computeCoordsAngles() {
} }
void DataSourceCameraConic::test(){ void DataSourceCameraConic::test(){
goalOrientation = digitalRead(SWITCH_2); //se HIGH attacco gialla, difendo blu
update(); update();
DEBUG.print("Blue: Angle: "); DEBUG.print("Blue: Angle: ");
DEBUG.print(bAngle); DEBUG.print(bAngle);