Add LV status field
This commit is contained in:
		@ -120,6 +120,7 @@ protected:
 | 
			
		||||
    DriverViewStatusItem statusSCS;
 | 
			
		||||
    DriverViewStatusItem statusPDU;
 | 
			
		||||
    DriverViewStatusItem statusINV;
 | 
			
		||||
    DriverViewStatusItem statusLV;
 | 
			
		||||
    touchgfx::BoxProgress progressBar;
 | 
			
		||||
    touchgfx::TextArea prechargeLabel;
 | 
			
		||||
    touchgfx::TextArea r2dLabel;
 | 
			
		||||
 | 
			
		||||
@ -7,15 +7,15 @@
 | 
			
		||||
 | 
			
		||||
DriverViewStatusItemBase::DriverViewStatusItemBase()
 | 
			
		||||
{
 | 
			
		||||
    setWidth(75);
 | 
			
		||||
    setWidth(65);
 | 
			
		||||
    setHeight(33);
 | 
			
		||||
    bg.setPosition(0, 0, 75, 33);
 | 
			
		||||
    bg.setPosition(0, 0, 65, 33);
 | 
			
		||||
    bg.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
 | 
			
		||||
    bg.setBorderColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
 | 
			
		||||
    bg.setBorderSize(1);
 | 
			
		||||
    add(bg);
 | 
			
		||||
 | 
			
		||||
    text.setPosition(0, 4, 75, 25);
 | 
			
		||||
    text.setPosition(0, 4, 65, 25);
 | 
			
		||||
    text.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
 | 
			
		||||
    text.setLinespacing(0);
 | 
			
		||||
    text.setTypedText(touchgfx::TypedText(T___SINGLEUSE_F9I5));
 | 
			
		||||
 | 
			
		||||
@ -225,6 +225,8 @@ DriverViewViewBase::DriverViewViewBase() :
 | 
			
		||||
 | 
			
		||||
    statusItems.add(statusINV);
 | 
			
		||||
 | 
			
		||||
    statusItems.add(statusLV);
 | 
			
		||||
 | 
			
		||||
    statusBar.add(statusItems);
 | 
			
		||||
 | 
			
		||||
    progressBar.setXY(0, 0);
 | 
			
		||||
@ -296,6 +298,7 @@ void DriverViewViewBase::setupScreen()
 | 
			
		||||
    statusSCS.initialize();
 | 
			
		||||
    statusPDU.initialize();
 | 
			
		||||
    statusINV.initialize();
 | 
			
		||||
    statusLV.initialize();
 | 
			
		||||
    errorPopup.initialize();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user