In response to your question in a previous post above:
"Does the BDC-COMM display a Temperature fault or a Gate Driver fault in red, as it does the Current fault?"
In BDC-COMM itself...we find this in: bdc-comm.cxx
Quote:
//
// Update the status items on the GUI.
//
g_pStatusVout->value(g_sBoardStatus.fVout);
g_pStatusVbus->value(g_sBoardStatus.fVbus);
g_pStatusCurrent->value(g_sBoardStatus.fCurrent);
g_pStatusTemperature->value(g_sBoardStatus.fTemperature);
g_pStatusPosition->value(g_sBoardStatus.fPosition);
g_pStatusSpeed->value(g_sBoardStatus.fSpeed);
g_pStatusLimit->value(g_sBoardStatus.pcLimit);
g_pStatusPower->value(g_sBoardStatus.lPower);
if(g_sBoardStatus.lFault)
{
switch(g_sBoardStatus.lFault)
{
case 1:
{
strcpy(g_pcFaultTxt, "CUR FAULT");
break;
}
case 2:
{
strcpy(g_pcFaultTxt, "TEMP FAULT");
break;
}
case 4:
{
strcpy(g_pcFaultTxt, "VBUS FAULT");
break;
}
case 8:
{
strcpy(g_pcFaultTxt, "GATE FAULT");
break;
}
}
g_pStatusFault->label(g_pcFaultTxt);
g_pStatusFault->show();
}
else
{
g_pStatusFault->hide();
}
|
So BDC-COMM can trap that gate fault...(I deleted a post above...because apparently they have some unrelated gadget that can't trap the gate fault condition...didn't want to confuse anyone).
This is where they draw and hide the control for the fault indicator in FLTK in the file: gui.fl
Quote:
Fl_Box g_pStatusFault {
label FAULT
xywh {325 62 100 25} box ENGRAVED_BOX color 1 labelcolor 7 hide
}
|
So it does not appear that BDC-COMM considers the type of fault in setting this control's color.
Have you seen it do otherwise?