Skip to content

Commit

Permalink
fixes that got rest by a previous pull
Browse files Browse the repository at this point in the history
  • Loading branch information
S1ink committed Jan 1, 2022
1 parent 4dfcb68 commit 5596d80
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion out/include/target.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void Target<corners>::sort(const std::vector<cv::Point_<num_t> >& contour) {
this->points.end(),
[this](const cv::Point2f& a, const cv::Point2f& b) {
this->a = a - this->center;
this->a = b - this->center;
this->b = b - this->center;
return -atan2(this->a.x, this->a.y) < -atan2(this->b.x, this->b.y); // note that x and y are switched -> clockwise
}
);
Expand Down
Binary file modified out/lib3407visionserver.a
Binary file not shown.
Binary file modified out/vision_program
Binary file not shown.
2 changes: 1 addition & 1 deletion src/api/target.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void Target<corners>::sort(const std::vector<cv::Point_<num_t> >& contour) {
this->points.end(),
[this](const cv::Point2f& a, const cv::Point2f& b) {
this->a = a - this->center;
this->a = b - this->center;
this->b = b - this->center;
return -atan2(this->a.x, this->a.y) < -atan2(this->b.x, this->b.y); // note that x and y are switched -> clockwise
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(int argc, char* argv[]) {
else { return EXIT_FAILURE; }

VisionServer server(std::move(cameras));
server.runVision<DefaultPipeline, BBoxDemo, TargetSolver<Test6x6, WeightedSubtraction<VThreshold::LED::BLUE> > >(25);
server.runVision<BBoxDemo, SquareTargetPNP, TargetSolver<Test6x6, WeightedSubtraction<VThreshold::LED::BLUE> > >(25);
}

// LIST OF THINGS
Expand Down

0 comments on commit 5596d80

Please sign in to comment.