Add LV status field
This commit is contained in:
parent
216ad67840
commit
6c2943f25e
|
@ -5,6 +5,9 @@
|
||||||
</Languages>
|
</Languages>
|
||||||
<Texts>
|
<Texts>
|
||||||
<TextGroup Id="Status">
|
<TextGroup Id="Status">
|
||||||
|
<Text Id="LV" Alignment="Center" TypographyId="Chinat_Small">
|
||||||
|
<Translation Language="GB">LV</Translation>
|
||||||
|
</Text>
|
||||||
<Text Id="PDU" Alignment="Center" TypographyId="Chinat_Small">
|
<Text Id="PDU" Alignment="Center" TypographyId="Chinat_Small">
|
||||||
<Translation Language="GB">PDU</Translation>
|
<Translation Language="GB">PDU</Translation>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
|
@ -120,6 +120,7 @@ protected:
|
||||||
DriverViewStatusItem statusSCS;
|
DriverViewStatusItem statusSCS;
|
||||||
DriverViewStatusItem statusPDU;
|
DriverViewStatusItem statusPDU;
|
||||||
DriverViewStatusItem statusINV;
|
DriverViewStatusItem statusINV;
|
||||||
|
DriverViewStatusItem statusLV;
|
||||||
touchgfx::BoxProgress progressBar;
|
touchgfx::BoxProgress progressBar;
|
||||||
touchgfx::TextArea prechargeLabel;
|
touchgfx::TextArea prechargeLabel;
|
||||||
touchgfx::TextArea r2dLabel;
|
touchgfx::TextArea r2dLabel;
|
||||||
|
|
|
@ -7,15 +7,15 @@
|
||||||
|
|
||||||
DriverViewStatusItemBase::DriverViewStatusItemBase()
|
DriverViewStatusItemBase::DriverViewStatusItemBase()
|
||||||
{
|
{
|
||||||
setWidth(75);
|
setWidth(65);
|
||||||
setHeight(33);
|
setHeight(33);
|
||||||
bg.setPosition(0, 0, 75, 33);
|
bg.setPosition(0, 0, 65, 33);
|
||||||
bg.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
|
bg.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));
|
||||||
bg.setBorderColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
bg.setBorderColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
||||||
bg.setBorderSize(1);
|
bg.setBorderSize(1);
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
text.setPosition(0, 4, 75, 25);
|
text.setPosition(0, 4, 65, 25);
|
||||||
text.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
text.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
||||||
text.setLinespacing(0);
|
text.setLinespacing(0);
|
||||||
text.setTypedText(touchgfx::TypedText(T___SINGLEUSE_F9I5));
|
text.setTypedText(touchgfx::TypedText(T___SINGLEUSE_F9I5));
|
||||||
|
|
|
@ -225,6 +225,8 @@ DriverViewViewBase::DriverViewViewBase() :
|
||||||
|
|
||||||
statusItems.add(statusINV);
|
statusItems.add(statusINV);
|
||||||
|
|
||||||
|
statusItems.add(statusLV);
|
||||||
|
|
||||||
statusBar.add(statusItems);
|
statusBar.add(statusItems);
|
||||||
|
|
||||||
progressBar.setXY(0, 0);
|
progressBar.setXY(0, 0);
|
||||||
|
@ -296,6 +298,7 @@ void DriverViewViewBase::setupScreen()
|
||||||
statusSCS.initialize();
|
statusSCS.initialize();
|
||||||
statusPDU.initialize();
|
statusPDU.initialize();
|
||||||
statusINV.initialize();
|
statusINV.initialize();
|
||||||
|
statusLV.initialize();
|
||||||
errorPopup.initialize();
|
errorPopup.initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"remap":"yes","language":"GB","language_index":0,"indices":[["334","T_PDU"],["342","T_SCS"],["346","T_SDC"],["338","T_R2D"],["327","T_TS"],["322","T_INV"],["318","T_AMS"],["128","T_ERROR_AMS"],["167","T_DEBUGVIEWFIELD_TITLE"],["167","T_DRIVERVIEWFIELD_TITLE"],["167","T_NUMBERSMALLWILDCARD"],["278","T_FIELD_BBAL"],["247","T_FIELD_TSVOLTVEH"],["240","T_FIELD_TSVOLTBAT"],["260","T_FIELD_LVSOC"],["272","T_FIELD_TSSOC"],["288","T_FIELD_MAXCELLTEMP"],["293","T_FIELD_TIREFL"],["298","T_FIELD_TIREFR"],["303","T_FIELD_TIRERL"],["308","T_FIELD_TIRERR"],["283","T_FIELD_LAPCOUNT"],["177","T_FIELD_INICHKSTATE"],["254","T_FIELD_ERR"],["346","T_FIELD_SDC"],["193","T_FIELD_INVRREADY"],["185","T_FIELD_INVLREADY"],["209","T_FIELD_R2DPROGRESS"],["201","T_FIELD_ACTIVEMISSION"],["169","T_FIELD_ASSTATE"],["225","T_FIELD_TSSTATE"],["167","T_NUMBERWILDCARD"],["167","T_DEFAULTWILDCARD_CENTERED"],["167","T_DEFAULTWILDCARD_RIGHTALIGNED"],["326","T_FIELD_TSCURRENT"],["313","T_FIELD_MINCELLVOLT"],["266","T_FIELD_SPEED"],["95","T_INSPECTION_HUGE"],["158","T_EBS_HUGE"],["117","T_TRACKDRIVE_HUGE"],["138","T_AUTOX_HUGE"],["217","T_SKIDPAD_HUGE"],["82","T_ACCEL_HUGE"],["34","T_INVALID_HUGE"],["67","T_MANUAL"],["95","T_INSPECTION"],["158","T_EBS"],["117","T_TRACKDRIVE"],["138","T_AUTOX"],["217","T_SKIDPAD"],["82","T_ACCEL"],["243","T___SINGLEUSE_L1J7"],["16","T___SINGLEUSE_F9I5"],["330","T___SINGLEUSE_JN2J"],["322","T___SINGLEUSE_ZP7N"],["167","T___SINGLEUSE_9L8R"],["16","T___SINGLEUSE_1NKF"],["167","T___SINGLEUSE_J5UH"],["338","T___SINGLEUSE_NGUK"],["167","T___SINGLEUSE_4E84"],["167","T___SINGLEUSE_YTAB"],["106","T___SINGLEUSE_RWCE"],["148","T___SINGLEUSE_HMH2"],["350","T___SINGLEUSE_4OBM"],["327","T___SINGLEUSE_PHFD"],["233","T___SINGLEUSE_H6UX"],["167","T___SINGLEUSE_20H3"],["17","T___SINGLEUSE_SDGP"],["51","T___SINGLEUSE_M5X7"],["0","T___SINGLEUSE_6GPV"]]}
|
{"remap":"yes","language":"GB","language_index":0,"indices":[["350","T_LV"],["334","T_PDU"],["342","T_SCS"],["346","T_SDC"],["338","T_R2D"],["327","T_TS"],["322","T_INV"],["318","T_AMS"],["128","T_ERROR_AMS"],["167","T_DEBUGVIEWFIELD_TITLE"],["167","T_DRIVERVIEWFIELD_TITLE"],["167","T_NUMBERSMALLWILDCARD"],["278","T_FIELD_BBAL"],["247","T_FIELD_TSVOLTVEH"],["240","T_FIELD_TSVOLTBAT"],["260","T_FIELD_LVSOC"],["272","T_FIELD_TSSOC"],["288","T_FIELD_MAXCELLTEMP"],["293","T_FIELD_TIREFL"],["298","T_FIELD_TIREFR"],["303","T_FIELD_TIRERL"],["308","T_FIELD_TIRERR"],["283","T_FIELD_LAPCOUNT"],["177","T_FIELD_INICHKSTATE"],["254","T_FIELD_ERR"],["346","T_FIELD_SDC"],["193","T_FIELD_INVRREADY"],["185","T_FIELD_INVLREADY"],["209","T_FIELD_R2DPROGRESS"],["201","T_FIELD_ACTIVEMISSION"],["169","T_FIELD_ASSTATE"],["225","T_FIELD_TSSTATE"],["167","T_NUMBERWILDCARD"],["167","T_DEFAULTWILDCARD_CENTERED"],["167","T_DEFAULTWILDCARD_RIGHTALIGNED"],["326","T_FIELD_TSCURRENT"],["313","T_FIELD_MINCELLVOLT"],["266","T_FIELD_SPEED"],["95","T_INSPECTION_HUGE"],["158","T_EBS_HUGE"],["117","T_TRACKDRIVE_HUGE"],["138","T_AUTOX_HUGE"],["217","T_SKIDPAD_HUGE"],["82","T_ACCEL_HUGE"],["34","T_INVALID_HUGE"],["67","T_MANUAL"],["95","T_INSPECTION"],["158","T_EBS"],["117","T_TRACKDRIVE"],["138","T_AUTOX"],["217","T_SKIDPAD"],["82","T_ACCEL"],["243","T___SINGLEUSE_L1J7"],["16","T___SINGLEUSE_F9I5"],["330","T___SINGLEUSE_JN2J"],["322","T___SINGLEUSE_ZP7N"],["167","T___SINGLEUSE_9L8R"],["16","T___SINGLEUSE_1NKF"],["167","T___SINGLEUSE_J5UH"],["338","T___SINGLEUSE_NGUK"],["167","T___SINGLEUSE_4E84"],["167","T___SINGLEUSE_YTAB"],["106","T___SINGLEUSE_RWCE"],["148","T___SINGLEUSE_HMH2"],["350","T___SINGLEUSE_4OBM"],["327","T___SINGLEUSE_PHFD"],["233","T___SINGLEUSE_H6UX"],["167","T___SINGLEUSE_20H3"],["17","T___SINGLEUSE_SDGP"],["51","T___SINGLEUSE_M5X7"],["0","T___SINGLEUSE_6GPV"]]}
|
|
@ -1 +1 @@
|
||||||
{"languages":["GB"],"textids":["T_PDU","T_SCS","T_SDC","T_R2D","T_TS","T_INV","T_AMS","T_ERROR_AMS","T_DEBUGVIEWFIELD_TITLE","T_DRIVERVIEWFIELD_TITLE","T_NUMBERSMALLWILDCARD","T_FIELD_BBAL","T_FIELD_TSVOLTVEH","T_FIELD_TSVOLTBAT","T_FIELD_LVSOC","T_FIELD_TSSOC","T_FIELD_MAXCELLTEMP","T_FIELD_TIREFL","T_FIELD_TIREFR","T_FIELD_TIRERL","T_FIELD_TIRERR","T_FIELD_LAPCOUNT","T_FIELD_INICHKSTATE","T_FIELD_ERR","T_FIELD_SDC","T_FIELD_INVRREADY","T_FIELD_INVLREADY","T_FIELD_R2DPROGRESS","T_FIELD_ACTIVEMISSION","T_FIELD_ASSTATE","T_FIELD_TSSTATE","T_NUMBERWILDCARD","T_DEFAULTWILDCARD_CENTERED","T_DEFAULTWILDCARD_RIGHTALIGNED","T_FIELD_TSCURRENT","T_FIELD_MINCELLVOLT","T_FIELD_SPEED","T_INSPECTION_HUGE","T_EBS_HUGE","T_TRACKDRIVE_HUGE","T_AUTOX_HUGE","T_SKIDPAD_HUGE","T_ACCEL_HUGE","T_INVALID_HUGE","T_MANUAL","T_INSPECTION","T_EBS","T_TRACKDRIVE","T_AUTOX","T_SKIDPAD","T_ACCEL","T___SINGLEUSE_L1J7","T___SINGLEUSE_F9I5","T___SINGLEUSE_JN2J","T___SINGLEUSE_ZP7N","T___SINGLEUSE_9L8R","T___SINGLEUSE_1NKF","T___SINGLEUSE_J5UH","T___SINGLEUSE_NGUK","T___SINGLEUSE_4E84","T___SINGLEUSE_YTAB","T___SINGLEUSE_RWCE","T___SINGLEUSE_HMH2","T___SINGLEUSE_4OBM","T___SINGLEUSE_PHFD","T___SINGLEUSE_H6UX","T___SINGLEUSE_20H3","T___SINGLEUSE_SDGP","T___SINGLEUSE_M5X7","T___SINGLEUSE_6GPV"]}
|
{"languages":["GB"],"textids":["T_LV","T_PDU","T_SCS","T_SDC","T_R2D","T_TS","T_INV","T_AMS","T_ERROR_AMS","T_DEBUGVIEWFIELD_TITLE","T_DRIVERVIEWFIELD_TITLE","T_NUMBERSMALLWILDCARD","T_FIELD_BBAL","T_FIELD_TSVOLTVEH","T_FIELD_TSVOLTBAT","T_FIELD_LVSOC","T_FIELD_TSSOC","T_FIELD_MAXCELLTEMP","T_FIELD_TIREFL","T_FIELD_TIREFR","T_FIELD_TIRERL","T_FIELD_TIRERR","T_FIELD_LAPCOUNT","T_FIELD_INICHKSTATE","T_FIELD_ERR","T_FIELD_SDC","T_FIELD_INVRREADY","T_FIELD_INVLREADY","T_FIELD_R2DPROGRESS","T_FIELD_ACTIVEMISSION","T_FIELD_ASSTATE","T_FIELD_TSSTATE","T_NUMBERWILDCARD","T_DEFAULTWILDCARD_CENTERED","T_DEFAULTWILDCARD_RIGHTALIGNED","T_FIELD_TSCURRENT","T_FIELD_MINCELLVOLT","T_FIELD_SPEED","T_INSPECTION_HUGE","T_EBS_HUGE","T_TRACKDRIVE_HUGE","T_AUTOX_HUGE","T_SKIDPAD_HUGE","T_ACCEL_HUGE","T_INVALID_HUGE","T_MANUAL","T_INSPECTION","T_EBS","T_TRACKDRIVE","T_AUTOX","T_SKIDPAD","T_ACCEL","T___SINGLEUSE_L1J7","T___SINGLEUSE_F9I5","T___SINGLEUSE_JN2J","T___SINGLEUSE_ZP7N","T___SINGLEUSE_9L8R","T___SINGLEUSE_1NKF","T___SINGLEUSE_J5UH","T___SINGLEUSE_NGUK","T___SINGLEUSE_4E84","T___SINGLEUSE_YTAB","T___SINGLEUSE_RWCE","T___SINGLEUSE_HMH2","T___SINGLEUSE_4OBM","T___SINGLEUSE_PHFD","T___SINGLEUSE_H6UX","T___SINGLEUSE_20H3","T___SINGLEUSE_SDGP","T___SINGLEUSE_M5X7","T___SINGLEUSE_6GPV"]}
|
|
@ -1 +1 @@
|
||||||
{"databases":{"GB":[[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[5,"LEFT","LTR"],[2,"CENTER","LTR"],[6,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[0,"CENTER","LTR"],[0,"RIGHT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[0,"LEFT","LTR"],[3,"CENTER","LTR"],[1,"RIGHT","LTR"],[1,"LEFT","LTR"],[4,"RIGHT","LTR"],[1,"LEFT","LTR"],[1,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[1,"LEFT","LTR"]],"DEFAULT":[[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[5,"LEFT","LTR"],[2,"CENTER","LTR"],[6,"LEFT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[0,"CENTER","LTR"],[0,"RIGHT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[0,"LEFT","LTR"],[3,"CENTER","LTR"],[1,"RIGHT","LTR"],[1,"LEFT","LTR"],[4,"RIGHT","LTR"],[1,"LEFT","LTR"],[1,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[1,"LEFT","LTR"]]},"database_list":["GB"],"fonts":{"getFont_verdana_20_4bpp":0,"getFont_CHINN____30_4bpp":1,"getFont_CHINN____20_4bpp":2,"getFont_CHINN____40_4bpp":3,"getFont_lucon_TTF_50_4bpp":4,"getFont_verdanab_20_4bpp":5,"getFont_lucon_TTF_33_4bpp":6},"generate_font_format":"0"}
|
{"databases":{"GB":[[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[5,"LEFT","LTR"],[2,"CENTER","LTR"],[6,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[0,"CENTER","LTR"],[0,"RIGHT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[0,"LEFT","LTR"],[3,"CENTER","LTR"],[1,"RIGHT","LTR"],[1,"LEFT","LTR"],[4,"RIGHT","LTR"],[1,"LEFT","LTR"],[1,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[1,"LEFT","LTR"]],"DEFAULT":[[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[5,"LEFT","LTR"],[2,"CENTER","LTR"],[6,"LEFT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[0,"CENTER","LTR"],[0,"RIGHT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[3,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[0,"LEFT","LTR"],[3,"CENTER","LTR"],[1,"RIGHT","LTR"],[1,"LEFT","LTR"],[4,"RIGHT","LTR"],[1,"LEFT","LTR"],[1,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[2,"CENTER","LTR"],[4,"CENTER","LTR"],[1,"LEFT","LTR"],[2,"CENTER","LTR"],[1,"LEFT","LTR"]]},"database_list":["GB"],"fonts":{"getFont_verdana_20_4bpp":0,"getFont_CHINN____30_4bpp":1,"getFont_CHINN____20_4bpp":2,"getFont_CHINN____40_4bpp":3,"getFont_lucon_TTF_50_4bpp":4,"getFont_verdanab_20_4bpp":5,"getFont_lucon_TTF_33_4bpp":6},"generate_font_format":"0"}
|
|
@ -12,6 +12,7 @@ enum LANGUAGES
|
||||||
|
|
||||||
enum TEXTS
|
enum TEXTS
|
||||||
{
|
{
|
||||||
|
T_LV,
|
||||||
T_PDU,
|
T_PDU,
|
||||||
T_SCS,
|
T_SCS,
|
||||||
T_SDC,
|
T_SDC,
|
||||||
|
|
|
@ -10,6 +10,7 @@ KEEP extern const uint32_t indicesGb[] TEXT_LOCATION_FLASH_ATTRIBUTE;
|
||||||
// Remap all strings
|
// Remap all strings
|
||||||
TEXT_LOCATION_FLASH_PRAGMA
|
TEXT_LOCATION_FLASH_PRAGMA
|
||||||
KEEP extern const uint32_t indicesGb[] TEXT_LOCATION_FLASH_ATTRIBUTE = {
|
KEEP extern const uint32_t indicesGb[] TEXT_LOCATION_FLASH_ATTRIBUTE = {
|
||||||
|
350, // T_LV: "LV"
|
||||||
334, // T_PDU: "PDU"
|
334, // T_PDU: "PDU"
|
||||||
342, // T_SCS: "SCS"
|
342, // T_SCS: "SCS"
|
||||||
346, // T_SDC: "SDC"
|
346, // T_SDC: "SDC"
|
||||||
|
|
|
@ -35,6 +35,7 @@ const touchgfx::TypedText::TypedTextData typedText_database_GB[] TEXT_LOCATION_F
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 3, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 3, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 5, touchgfx::LEFT, touchgfx::TEXT_DIRECTION_LTR },
|
{ 5, touchgfx::LEFT, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
|
@ -108,6 +109,7 @@ const touchgfx::TypedText::TypedTextData typedText_database_DEFAULT[] TEXT_LOCAT
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 3, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 3, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 5, touchgfx::LEFT, touchgfx::TEXT_DIRECTION_LTR },
|
{ 5, touchgfx::LEFT, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
{ 2, touchgfx::CENTER, touchgfx::TEXT_DIRECTION_LTR },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "touchgfx/hal/Types.hpp"
|
#include "touchgfx/hal/Types.hpp"
|
||||||
#include <gui_generated/containers/DriverViewStatusItemBase.hpp>
|
#include <gui_generated/containers/DriverViewStatusItemBase.hpp>
|
||||||
|
|
||||||
enum class DriverViewStatusType { TS_R2D, AMS, SDC, SCS, PDU, INV };
|
enum class DriverViewStatusType { TS_R2D, AMS, SDC, SCS, PDU, INV, LV };
|
||||||
|
|
||||||
class DriverViewStatusItem : public DriverViewStatusItemBase {
|
class DriverViewStatusItem : public DriverViewStatusItemBase {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -57,6 +57,11 @@ void DriverViewStatusItem::update() {
|
||||||
bg.setColor(COLOR_OFF);
|
bg.setColor(COLOR_OFF);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case DriverViewStatusType::LV:
|
||||||
|
text.setTypedText(T_LV);
|
||||||
|
// TODO: Set color based on LV SoC
|
||||||
|
bg.setColor(COLOR_OFF);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
text.invalidate();
|
text.invalidate();
|
||||||
bg.invalidate();
|
bg.invalidate();
|
||||||
|
|
|
@ -25,6 +25,7 @@ void DriverViewView::setupScreen() {
|
||||||
statusSCS.setType(DriverViewStatusType::SCS);
|
statusSCS.setType(DriverViewStatusType::SCS);
|
||||||
statusPDU.setType(DriverViewStatusType::PDU);
|
statusPDU.setType(DriverViewStatusType::PDU);
|
||||||
statusINV.setType(DriverViewStatusType::INV);
|
statusINV.setType(DriverViewStatusType::INV);
|
||||||
|
statusLV.setType(DriverViewStatusType::LV);
|
||||||
fieldTypeSelection.setNumberOfItems(DataFieldType_COUNT);
|
fieldTypeSelection.setNumberOfItems(DataFieldType_COUNT);
|
||||||
// int tireThresholds[4] = {35, 40, 50, 60};
|
// int tireThresholds[4] = {35, 40, 50, 60};
|
||||||
// tireTempFL.setTempThresholds(tireThresholds);
|
// tireTempFL.setTempThresholds(tireThresholds);
|
||||||
|
|
|
@ -651,54 +651,62 @@
|
||||||
{
|
{
|
||||||
"Type": "ListLayout",
|
"Type": "ListLayout",
|
||||||
"Name": "statusItems",
|
"Name": "statusItems",
|
||||||
"Width": 450,
|
"Width": 455,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"Direction": "East",
|
"Direction": "East",
|
||||||
"Components": [
|
"Components": [
|
||||||
{
|
{
|
||||||
"Type": "CustomContainerInstance",
|
"Type": "CustomContainerInstance",
|
||||||
"Name": "statusTS_R2D",
|
"Name": "statusTS_R2D",
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "CustomContainerInstance",
|
"Type": "CustomContainerInstance",
|
||||||
"Name": "statusAMS",
|
"Name": "statusAMS",
|
||||||
"X": 75,
|
"X": 65,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "CustomContainerInstance",
|
"Type": "CustomContainerInstance",
|
||||||
"Name": "statusSDC",
|
"Name": "statusSDC",
|
||||||
"X": 150,
|
"X": 130,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "CustomContainerInstance",
|
"Type": "CustomContainerInstance",
|
||||||
"Name": "statusSCS",
|
"Name": "statusSCS",
|
||||||
"X": 225,
|
"X": 195,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "CustomContainerInstance",
|
"Type": "CustomContainerInstance",
|
||||||
"Name": "statusPDU",
|
"Name": "statusPDU",
|
||||||
"X": 300,
|
"X": 260,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "CustomContainerInstance",
|
"Type": "CustomContainerInstance",
|
||||||
"Name": "statusINV",
|
"Name": "statusINV",
|
||||||
"X": 375,
|
"X": 325,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
|
"Height": 33,
|
||||||
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "CustomContainerInstance",
|
||||||
|
"Name": "statusLV",
|
||||||
|
"X": 390,
|
||||||
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
"CustomContainerDefinitionName": "DriverViewStatusItem"
|
||||||
}
|
}
|
||||||
|
@ -1467,13 +1475,13 @@
|
||||||
"Name": "DriverViewStatusItem",
|
"Name": "DriverViewStatusItem",
|
||||||
"X": 35,
|
"X": 35,
|
||||||
"Y": 115,
|
"Y": 115,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"Components": [
|
"Components": [
|
||||||
{
|
{
|
||||||
"Type": "BoxWithBorder",
|
"Type": "BoxWithBorder",
|
||||||
"Name": "bg",
|
"Name": "bg",
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 33,
|
"Height": 33,
|
||||||
"BorderColor": {
|
"BorderColor": {
|
||||||
"Red": 255,
|
"Red": 255,
|
||||||
|
@ -1486,7 +1494,7 @@
|
||||||
"Type": "TextArea",
|
"Type": "TextArea",
|
||||||
"Name": "text",
|
"Name": "text",
|
||||||
"Y": 4,
|
"Y": 4,
|
||||||
"Width": 75,
|
"Width": 65,
|
||||||
"Height": 25,
|
"Height": 25,
|
||||||
"TextId": "__SingleUse_F9I5",
|
"TextId": "__SingleUse_F9I5",
|
||||||
"TextRotation": "0",
|
"TextRotation": "0",
|
||||||
|
|
Loading…
Reference in New Issue