Display R2D progress
This commit is contained in:
@ -3,11 +3,14 @@
|
||||
|
||||
#include "gui/common/NamedField.hpp"
|
||||
#include "gui/containers/DriverViewFieldSelection.hpp"
|
||||
#include "touchgfx/Unicode.hpp"
|
||||
#include "touchgfx/containers/scrollers/DrawableList.hpp"
|
||||
#include "vehicle.h"
|
||||
#include <gui/driverview_screen/DriverViewPresenter.hpp>
|
||||
#include <gui_generated/driverview_screen/DriverViewViewBase.hpp>
|
||||
|
||||
enum class DriverViewProgressType { PRECHARGE, R2D };
|
||||
|
||||
class DriverViewView : public DriverViewViewBase {
|
||||
public:
|
||||
DriverViewView();
|
||||
@ -23,7 +26,7 @@ public:
|
||||
|
||||
void setTireTemps(const TireTemps &temps);
|
||||
void setTSSoC(uint8_t soc);
|
||||
void setPrecharge(bool active, float progress);
|
||||
void setProgress(bool active, DriverViewProgressType type, float progress);
|
||||
|
||||
void selectPrevField() override;
|
||||
void selectNextField() override;
|
||||
@ -43,6 +46,8 @@ private:
|
||||
size_t selectedField;
|
||||
size_t selectedFieldType;
|
||||
DataFieldType fieldTypes[NUM_FIELDS];
|
||||
|
||||
touchgfx::Unicode::UnicodeChar r2dProgBuffer[16];
|
||||
};
|
||||
|
||||
#endif // DRIVERVIEWVIEW_HPP
|
||||
|
||||
Reference in New Issue
Block a user