uConfig icon indicating copy to clipboard operation
uConfig copied to clipboard

pin shown in debugger but not in result

Open Exorcismus opened this issue 5 years ago • 5 comments

the tool debugger seems to detect the pins correctly, yet the result table not displaying some image pin 2,7 are missing image

Exorcismus avatar Mar 27 '19 12:03 Exorcismus

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.

sebcaux avatar Mar 27 '19 12:03 sebcaux

please find it below , page 17 pdf

Exorcismus avatar Mar 27 '19 13:03 Exorcismus

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

Exorcismus avatar Mar 27 '19 13:03 Exorcismus

... good question, pin 7 is associated yes, but with the upper package. I will try to fix it soon.

sebcaux avatar Mar 27 '19 13:03 sebcaux

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;
}

}`

Exorcismus avatar Apr 10 '19 13:04 Exorcismus