Browse Source

Allow neg. angle

master
Tim Zeuner 1 year ago
parent
commit
7814f64873
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      AutonomousMode/Processing/processing.cpp

+ 4
- 0
AutonomousMode/Processing/processing.cpp View File

@@ -144,6 +144,10 @@ void Processing::calcAngles(FrameData &data, int imageColums, int imageRows, boo
LFRVector b(contourCenter-focusPoint);

double angle = a.angle(b);
if (b.x < 0.0)
{
angle *= -1.0;
}

//Write to Data
data.angle = angle;

Loading…
Cancel
Save