Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds new multiplex-mapper for QiangLi Q8 40x20 panel #879

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion lib/multiplex-mappers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,20 @@ class P10MapperZ : public MultiplexMapperBase {
}
}
};
class QiangLiQ8 : public MultiplexMapperBase {
public:
QiangLiQ8() : MultiplexMapperBase("QiangLiQ8", 2) {}

void MapSinglePanel(int x, int y, int *matrix_x, int *matrix_y) const {
int collumn = x + (4+ 4*(x/4));
*matrix_x = collumn;
if((y >= 15 && y <=19)||(y>=5 && y <= 9)){
int reverseCollumn = x + (4*(x/4));
*matrix_x = reverseCollumn;
}
*matrix_y = y % 5 + (y/10) *5 ;
}
};
/*
* Here is where the registration happens.
* If you add an instance of the mapper here, it will automatically be
Expand All @@ -257,7 +270,7 @@ static MuxMapperList *CreateMultiplexMapperList() {
result->push_back(new Kaler2ScanMapper());
result->push_back(new ZStripeMultiplexMapper("ZStripeUneven", 8, 0));
result->push_back(new P10MapperZ());

result->push_back(new QiangLiQ8());
return result;
}

Expand Down