WSF
Message12_2.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef L16_MESSAGE12_2_HPP
12#define L16_MESSAGE12_2_HPP
13#include "MessageDefines.hpp"
14
15namespace WsfL16
16{
17namespace Messages
18{
19namespace J12_2
20{
21
22
24{
25public:
26 double GetDegrees() { return DecodeTC((unsigned)mValue) * (22.0 / 512.0); }
27 void SetDegrees(double aDeg) { mValue = (value_type)EncodeTC((int)(aDeg / (22.0 / 512.0))); }
28};
29
31{
32public:
33 double GetFeet() { return DecodeTC((unsigned)mValue) * 20.0; }
34 void SetFeet(double aFt) { mValue = (value_type)EncodeTC((int)(aFt / 20.0)); }
35};
36
38{
39public:
40 double GetFeet() { return DecodeTC((unsigned)mValue) * 15.625; }
41 void SetFeet(double aFt) { mValue = (value_type)EncodeTC((int)(aFt / 15.625)); }
42};
43
45{
46public:
47 double GetDegrees() { return DecodeTC((unsigned)mValue) * (60.0 / 512.0); }
48 void SetDegrees(double aFt) { mValue = (value_type)EncodeTC((int)(aFt / (60.0 / 512.0))); }
49};
50
68
70
71class Initial : public InitialBase
72{
73public:
75
85 DEFINE_MEMBERS9(TrackNumber,
86 VerticalControl,
87 VerticalError,
88 LateralError,
89 LateralControl,
90 PrecisionDirection,
91 TimeToGoSeconds,
92 IsAutopilotControlled,
93 DoDropWeapon);
94
97
98protected:
99};
100
101} // namespace J12_2
102} // namespace Messages
103} // namespace WsfL16
104
105#endif
for fields with 1 == true
Definition FieldTypes.hpp:986
FieldBase()
Definition FieldTypes.hpp:215
int DecodeTC(unsigned a2C) const
Definition FieldTypes.hpp:256
value_type mValue
Definition FieldTypes.hpp:293
unsigned EncodeTC(int aInt) const
Definition FieldTypes.hpp:267
SmallIntType< BIT_COUNT >::integer_type value_type
Definition FieldTypes.hpp:229
InitialBase(const InitialBase &aSrc)
Definition Messages.cpp:123
Integral field without a 'NoStatement' value. Supports conversion to/from int.
Definition FieldTypes.hpp:373
Definition Message12_2.hpp:72
LateralControlField FieldType5
Definition Message12_2.hpp:80
IntegerField< 5 > FieldType7
Definition Message12_2.hpp:82
VerticalErrorField FieldType3
Definition Message12_2.hpp:78
BooleanField FieldType9
Definition Message12_2.hpp:84
DEFINE_MEMBERS9(TrackNumber, VerticalControl, VerticalError, LateralError, LateralControl, PrecisionDirection, TimeToGoSeconds, IsAutopilotControlled, DoDropWeapon)
PrecisionAircraftDirectionField FieldType6
Definition Message12_2.hpp:81
TrackNumberAddresseeField FieldType1
Definition Message12_2.hpp:76
VerticalControlField FieldType2
Definition Message12_2.hpp:77
LateralErrorField FieldType4
Definition Message12_2.hpp:79
BooleanField FieldType8
Definition Message12_2.hpp:83
double GetDegrees()
Definition Message12_2.hpp:47
void SetDegrees(double aFt)
Definition Message12_2.hpp:48
Definition Message12_2.hpp:38
double GetFeet()
Definition Message12_2.hpp:40
void SetFeet(double aFt)
Definition Message12_2.hpp:41
DEFINE_ACCESSORS(PrecisionAircraftDirectionField, DirectionType)
@ cUNDER_PRECISION_CONTROL
Definition Message12_2.hpp:58
double GetDegrees()
Definition Message12_2.hpp:26
void SetDegrees(double aDeg)
Definition Message12_2.hpp:27
Definition Message12_2.hpp:31
void SetFeet(double aFt)
Definition Message12_2.hpp:34
double GetFeet()
Definition Message12_2.hpp:33
Definition Message12_2.hpp:20
IntegerField< 5 > TimeSeconds
Definition Message12_2.hpp:69
Definition ComputerPart.hpp:45
IntegerFieldNS< 15, NoStatementMax > TrackNumberAddresseeField
Definition FieldTypes.hpp:2890
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Copyrights Multiple, All Rights Reserved