Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
sa.h
Go to the documentation of this file.
1//
2// Copyright (c) 2023, DefenceX PTY LTD
3//
4// This file is part of the VivoeX project developed by DefenceX.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
12#ifndef HMICORE_STATES_SA_H_
13#define HMICORE_STATES_SA_H_
14
15#include <iostream>
16
17#include "hmicore/gva.h"
18#include "hmicore/hmi_gva.h"
20#include "hmicore/view_gva.h"
21#include "hmicore/widgets/ai/object_localisation.h"
24
25namespace gva {
26
28struct StateSA : Hmi {
29 void entry() override;
30 void exit() override;
31 void react(EventKeyPowerOn const &) override;
32 void react(EventKeySA const &) override;
33 void react(EventKeyWPN const &) override;
34 void react(EventKeyDEF const &) override;
35 void react(EventKeySYS const &) override;
36 void react(EventKeyDRV const &) override;
37 void react(EventKeySTR const &) override;
38 void react(EventKeyCOM const &) override;
39 void react(EventKeyBMS const &) override;
40 void react(EventKeyAlarms const &) override;
41 void react(EventKeyFunction const &e) override;
42
43 private:
44 GvaKeyEnum current_selection_ = GvaKeyEnum::kKeyF5;
45 gva::WidgetVideo *video_ = nullptr;
46};
47
48} // namespace gva
49
50#endif // HMICORE_STATES_SA_H_
Class defining the video widget.
Definition video.h:29
GvaKeyEnum
These are physical GVA keys around the display.
Definition gva.h:67
Event for Alarms key press.
Definition base_hmi.h:51
Event for BMS key press.
Definition base_hmi.h:49
Event for COM key press.
Definition base_hmi.h:47
Event for DEF key press.
Definition base_hmi.h:39
Event for DRV key press.
Definition base_hmi.h:43
Event for Function key press.
Definition base_hmi.h:53
Definition base_hmi.h:33
Event for SA key press.
Definition base_hmi.h:35
Event for STR key press.
Definition base_hmi.h:45
Event for SYS key press.
Definition base_hmi.h:41
Event for WPN key press.
Definition base_hmi.h:37
State Machine Base Class Declaration.
Definition base_hmi.h:59
The SA state.
Definition sa.h:28
void react(EventKeyPowerOn const &) override
Nothing to do in base class.
Definition sa.cc:121
void exit() override
no exit actions
Definition sa.cc:146
void entry() override
entry actions in some States
Definition sa.cc:104