uConfig
uConfig copied to clipboard
pin shown in debugger but not in result
the tool debugger seems to detect the pins correctly, yet the result table not displaying some
pin 2,7 are missing
Could you please give me the link of the datasheet you use? When a pin name have a square in blue, it has been associated to a pin. In green, no associations have been found.
please find it below , page 17 pdf
Could you please give me the link of the datasheet you use? When a pin name have a square in blue, it has been associated to a pin. In green, no associations have been found.
this works for pin 2, but what about pin 7 ?, maked blue , yet, no association
... good question, pin 7 is associated yes, but with the upper package. I will try to fix it soon.
as the word width is higher than it's height, the application dealt with it as horizontal word, while it should have dealt with it as vertical word it seems the below condition is the reason in failing to detect alignement correctly, I had to chage if (label.pos.width()> label.pos.height() || label.text.count() <= 2) to if (label.pos.width()-1 > label.pos.height() || label.text.count() <= 2) , any chance we might be able to tune the alignment algorithm ? `bool DatasheetBox::isAlign(const DatasheetBox &label, const DatasheetBox &number) {
// Horizontal
//TODO replace this small label test with a real margin test
if (label.pos.width()-1 > label.pos.height() || label.text.count() <= 2)
{
qreal marge = label.pos.height();
if (label.pos.height() > number.pos.height() * 2
|| number.pos.height() > label.pos.height() * 2)
return false;
if (label.pos.top() - marge < number.pos.top() &&
label.pos.bottom() + marge > number.pos.bottom())
return true;
else
return false;
}
else // Vertical
{
qreal marge = label.pos.width();
if (label.pos.left() - marge < number.pos.left() &&
label.pos.right() + marge > number.pos.right())
return true;
else
return false;
}
}`