Display steering angle, speed & cones in AMI
This commit is contained in:
@ -10,6 +10,10 @@
|
||||
#include <touchgfx/widgets/Box.hpp>
|
||||
#include <touchgfx/widgets/Image.hpp>
|
||||
#include <touchgfx/widgets/TextArea.hpp>
|
||||
#include <touchgfx/widgets/TextAreaWithWildcard.hpp>
|
||||
#include <touchgfx/containers/Container.hpp>
|
||||
#include <touchgfx/widgets/canvas/Shape.hpp>
|
||||
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
|
||||
|
||||
class AMIViewBase : public touchgfx::View<AMIPresenter>
|
||||
{
|
||||
@ -28,11 +32,47 @@ protected:
|
||||
*/
|
||||
touchgfx::Box __background;
|
||||
touchgfx::Image logo;
|
||||
touchgfx::TextArea title;
|
||||
touchgfx::TextArea currentMission;
|
||||
touchgfx::TextArea textArea1;
|
||||
touchgfx::TextArea textArea2;
|
||||
touchgfx::TextAreaWithOneWildcard desiredAngle;
|
||||
touchgfx::TextAreaWithOneWildcard measuredAngle;
|
||||
touchgfx::TextAreaWithOneWildcard measuredSpeed;
|
||||
touchgfx::TextAreaWithOneWildcard desiredSpeed;
|
||||
touchgfx::TextArea textArea4;
|
||||
touchgfx::TextArea textArea3;
|
||||
touchgfx::Container map;
|
||||
touchgfx::Shape<3> cone0;
|
||||
touchgfx::PainterRGB565 cone0Painter;
|
||||
touchgfx::Shape<3> cone1;
|
||||
touchgfx::PainterRGB565 cone1Painter;
|
||||
touchgfx::Shape<3> cone2;
|
||||
touchgfx::PainterRGB565 cone2Painter;
|
||||
touchgfx::Shape<3> cone3;
|
||||
touchgfx::PainterRGB565 cone3Painter;
|
||||
touchgfx::Shape<3> cone4;
|
||||
touchgfx::PainterRGB565 cone4Painter;
|
||||
touchgfx::Shape<3> cone5;
|
||||
touchgfx::PainterRGB565 cone5Painter;
|
||||
touchgfx::Shape<3> cone6;
|
||||
touchgfx::PainterRGB565 cone6Painter;
|
||||
touchgfx::Shape<3> cone7;
|
||||
touchgfx::PainterRGB565 cone7Painter;
|
||||
touchgfx::Shape<3> cone8;
|
||||
touchgfx::PainterRGB565 cone8Painter;
|
||||
touchgfx::Shape<3> cone9;
|
||||
touchgfx::PainterRGB565 cone9Painter;
|
||||
touchgfx::Shape<3> ft;
|
||||
touchgfx::PainterRGB565 ftPainter;
|
||||
|
||||
private:
|
||||
|
||||
/*
|
||||
* Canvas Buffer Size
|
||||
*/
|
||||
static const uint32_t CANVAS_BUFFER_SIZE = 7200;
|
||||
uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
|
||||
|
||||
};
|
||||
|
||||
#endif // AMIVIEWBASE_HPP
|
||||
|
||||
@ -17,9 +17,12 @@ public:
|
||||
|
||||
virtual void changeToStartScreen()
|
||||
{
|
||||
gotoDriverViewScreenNoTransition();
|
||||
gotoMissionSelectScreenNoTransition();
|
||||
}
|
||||
|
||||
// MissionSelect
|
||||
void gotoMissionSelectScreenNoTransition();
|
||||
|
||||
// AMI
|
||||
void gotoAMIScreenNoTransition();
|
||||
|
||||
@ -37,6 +40,9 @@ protected:
|
||||
FrontendHeap& frontendHeap;
|
||||
Model& model;
|
||||
|
||||
// MissionSelect
|
||||
void gotoMissionSelectScreenNoTransitionImpl();
|
||||
|
||||
// AMI
|
||||
void gotoAMIScreenNoTransitionImpl();
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ public:
|
||||
|
||||
virtual void gotoStartScreen(FrontendApplication& app)
|
||||
{
|
||||
app.gotoDriverViewScreenNoTransition();
|
||||
app.gotoMissionSelectScreenNoTransition();
|
||||
}
|
||||
protected:
|
||||
FrontendHeapBase(touchgfx::AbstractPartition& presenters, touchgfx::AbstractPartition& views, touchgfx::AbstractPartition& transitions, FrontendApplication& app)
|
||||
|
||||
Reference in New Issue
Block a user