Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Proxies/TrainingAreaBaseOC/oc_telegrams.h
T

145 lines
2.0 KiB
C++
Executable File

#pragma once
#include <TrainingAreaBase/training_area_telegrams.h>
namespace TrainingAreaBaseOC
{
namespace OcTelegrams
{
enum class TextType
{
test = 0,
UnderFire = 1,
Injury = 2,
Manipulation = 3,
Kill = 4,
State = 5,
Error = 6,
Activation = 7,
Messages = 8,
AcousticOutputOnly = 9,
ClearDisplay = 255,
};
struct Display
{
QByteArray text;
int multiplexer = 0;
TextType textType = TextType::test;
int indexVbg = 0;
int indexVba = 0;
};
struct TimeSync
{
qint64 gpsTimeMsec = 0;
unsigned char timezone = '\0';
};
struct EnterLeaveAes
{
unsigned int aesId = 0;
unsigned int chargeTasCode = 0;
bool aesEntered = false;
unsigned char nbcArea = '\0';
unsigned char cAreaType = '\0';
};
struct TechnicalStateSfm
{
qint64 gpsTimeMsec = 0;
bool sfmConnected = false;
bool radioAvailable = false;
bool licensed = false;
bool batteryTest = false;
bool manipulationEquipment = false;
bool manipulationSfm = false;
unsigned char errorCode;
};
struct DemandSelftestSfm
{
char dummy = '\0';
};
struct OwnPosition
{
qint64 gpsTimeMsec = 0;
int easting = 0;
int northing = 0;
bool valid = false;
};
struct DemandCyclicPositions
{
unsigned char cycleTime = '\1';
};
struct SpecificsExercise
{
QByteArray square;
unsigned int exerciseId = 0;
unsigned int zone = 0;
unsigned int easting = 0;
unsigned int northing = 0;
unsigned char band;
};
struct SpecificsEquipment
{
unsigned int equipmentNumber = 0;
TrainingAreaBase::TetraIcd::Language language;
unsigned char playerType = '\0';
unsigned char sfm = '\0';
unsigned char panCoordinator = '\0';
unsigned char viss = '\0';
unsigned char geopairing = '\0';
unsigned char ecu = '\0';
unsigned char hsu = '\0';
unsigned char halt = '\0';
bool pyrotechnics = false;
bool voiceOutput = false;
bool exerciseBreak = false;
};
struct TechnicalStateOc
{
unsigned char errorCode = '\0';
};
}
}