spacedatastandards-org 1.73.12

Space data standards framework based on CCSDS standards and Google FlatBuffers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
// automatically generated by the FlatBuffers compiler, do not modify


// @generated

use core::mem;
use core::cmp::Ordering;

extern crate flatbuffers;
use self::flatbuffers::{EndianScalar, Follow};

#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_MISSILE_TYPE: i8 = 0;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_MISSILE_TYPE: i8 = 14;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_MISSILE_TYPE: [MissileType; 15] = [
  MissileType::AAM_IR,
  MissileType::AAM_SARH,
  MissileType::AAM_ARH,
  MissileType::SAM_IR,
  MissileType::SAM_SARH,
  MissileType::SAM_COMMAND,
  MissileType::ASM_AR,
  MissileType::ASM_TV,
  MissileType::ASM_LASER,
  MissileType::ATGM_SACLOS,
  MissileType::ATGM_BEAM,
  MissileType::ATGM_TOP,
  MissileType::CRUISE,
  MissileType::BALLISTIC,
  MissileType::TORPEDO,
];

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
#[repr(transparent)]
pub struct MissileType(pub i8);
#[allow(non_upper_case_globals)]
impl MissileType {
  pub const AAM_IR: Self = Self(0);
  pub const AAM_SARH: Self = Self(1);
  pub const AAM_ARH: Self = Self(2);
  pub const SAM_IR: Self = Self(3);
  pub const SAM_SARH: Self = Self(4);
  pub const SAM_COMMAND: Self = Self(5);
  pub const ASM_AR: Self = Self(6);
  pub const ASM_TV: Self = Self(7);
  pub const ASM_LASER: Self = Self(8);
  pub const ATGM_SACLOS: Self = Self(9);
  pub const ATGM_BEAM: Self = Self(10);
  pub const ATGM_TOP: Self = Self(11);
  pub const CRUISE: Self = Self(12);
  pub const BALLISTIC: Self = Self(13);
  pub const TORPEDO: Self = Self(14);

  pub const ENUM_MIN: i8 = 0;
  pub const ENUM_MAX: i8 = 14;
  pub const ENUM_VALUES: &'static [Self] = &[
    Self::AAM_IR,
    Self::AAM_SARH,
    Self::AAM_ARH,
    Self::SAM_IR,
    Self::SAM_SARH,
    Self::SAM_COMMAND,
    Self::ASM_AR,
    Self::ASM_TV,
    Self::ASM_LASER,
    Self::ATGM_SACLOS,
    Self::ATGM_BEAM,
    Self::ATGM_TOP,
    Self::CRUISE,
    Self::BALLISTIC,
    Self::TORPEDO,
  ];
  /// Returns the variant's name or "" if unknown.
  pub fn variant_name(self) -> Option<&'static str> {
    match self {
      Self::AAM_IR => Some("AAM_IR"),
      Self::AAM_SARH => Some("AAM_SARH"),
      Self::AAM_ARH => Some("AAM_ARH"),
      Self::SAM_IR => Some("SAM_IR"),
      Self::SAM_SARH => Some("SAM_SARH"),
      Self::SAM_COMMAND => Some("SAM_COMMAND"),
      Self::ASM_AR => Some("ASM_AR"),
      Self::ASM_TV => Some("ASM_TV"),
      Self::ASM_LASER => Some("ASM_LASER"),
      Self::ATGM_SACLOS => Some("ATGM_SACLOS"),
      Self::ATGM_BEAM => Some("ATGM_BEAM"),
      Self::ATGM_TOP => Some("ATGM_TOP"),
      Self::CRUISE => Some("CRUISE"),
      Self::BALLISTIC => Some("BALLISTIC"),
      Self::TORPEDO => Some("TORPEDO"),
      _ => None,
    }
  }
}
impl core::fmt::Debug for MissileType {
  fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
    if let Some(name) = self.variant_name() {
      f.write_str(name)
    } else {
      f.write_fmt(format_args!("<UNKNOWN {:?}>", self.0))
    }
  }
}
impl<'a> flatbuffers::Follow<'a> for MissileType {
  type Inner = Self;
  #[inline]
  unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
    let b = flatbuffers::read_scalar_at::<i8>(buf, loc);
    Self(b)
  }
}

impl flatbuffers::Push for MissileType {
    type Output = MissileType;
    #[inline]
    unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
        flatbuffers::emplace_scalar::<i8>(dst, self.0);
    }
}

impl flatbuffers::EndianScalar for MissileType {
  type Scalar = i8;
  #[inline]
  fn to_little_endian(self) -> i8 {
    self.0.to_le()
  }
  #[inline]
  #[allow(clippy::wrong_self_convention)]
  fn from_little_endian(v: i8) -> Self {
    let b = i8::from_le(v);
    Self(b)
  }
}

impl<'a> flatbuffers::Verifiable for MissileType {
  #[inline]
  fn run_verifier(
    v: &mut flatbuffers::Verifier, pos: usize
  ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
    use self::flatbuffers::Verifiable;
    i8::run_verifier(v, pos)
  }
}

impl flatbuffers::SimpleToVerifyInSlice for MissileType {}
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_SEEKER_TYPE: i8 = 0;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_SEEKER_TYPE: i8 = 12;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_SEEKER_TYPE: [SeekerType; 13] = [
  SeekerType::NONE,
  SeekerType::IR_UNCOOLED,
  SeekerType::IR_COOLED,
  SeekerType::IR_IMAGING,
  SeekerType::IR_2COLOR,
  SeekerType::RADAR_SARH,
  SeekerType::RADAR_ARH,
  SeekerType::RADAR_PASSIVE,
  SeekerType::TV_OPTICAL,
  SeekerType::LASER_SH,
  SeekerType::GPS_INS,
  SeekerType::ACOUSTIC,
  SeekerType::WIRE,
];

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
#[repr(transparent)]
pub struct SeekerType(pub i8);
#[allow(non_upper_case_globals)]
impl SeekerType {
  pub const NONE: Self = Self(0);
  pub const IR_UNCOOLED: Self = Self(1);
  pub const IR_COOLED: Self = Self(2);
  pub const IR_IMAGING: Self = Self(3);
  pub const IR_2COLOR: Self = Self(4);
  pub const RADAR_SARH: Self = Self(5);
  pub const RADAR_ARH: Self = Self(6);
  pub const RADAR_PASSIVE: Self = Self(7);
  pub const TV_OPTICAL: Self = Self(8);
  pub const LASER_SH: Self = Self(9);
  pub const GPS_INS: Self = Self(10);
  pub const ACOUSTIC: Self = Self(11);
  pub const WIRE: Self = Self(12);

  pub const ENUM_MIN: i8 = 0;
  pub const ENUM_MAX: i8 = 12;
  pub const ENUM_VALUES: &'static [Self] = &[
    Self::NONE,
    Self::IR_UNCOOLED,
    Self::IR_COOLED,
    Self::IR_IMAGING,
    Self::IR_2COLOR,
    Self::RADAR_SARH,
    Self::RADAR_ARH,
    Self::RADAR_PASSIVE,
    Self::TV_OPTICAL,
    Self::LASER_SH,
    Self::GPS_INS,
    Self::ACOUSTIC,
    Self::WIRE,
  ];
  /// Returns the variant's name or "" if unknown.
  pub fn variant_name(self) -> Option<&'static str> {
    match self {
      Self::NONE => Some("NONE"),
      Self::IR_UNCOOLED => Some("IR_UNCOOLED"),
      Self::IR_COOLED => Some("IR_COOLED"),
      Self::IR_IMAGING => Some("IR_IMAGING"),
      Self::IR_2COLOR => Some("IR_2COLOR"),
      Self::RADAR_SARH => Some("RADAR_SARH"),
      Self::RADAR_ARH => Some("RADAR_ARH"),
      Self::RADAR_PASSIVE => Some("RADAR_PASSIVE"),
      Self::TV_OPTICAL => Some("TV_OPTICAL"),
      Self::LASER_SH => Some("LASER_SH"),
      Self::GPS_INS => Some("GPS_INS"),
      Self::ACOUSTIC => Some("ACOUSTIC"),
      Self::WIRE => Some("WIRE"),
      _ => None,
    }
  }
}
impl core::fmt::Debug for SeekerType {
  fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
    if let Some(name) = self.variant_name() {
      f.write_str(name)
    } else {
      f.write_fmt(format_args!("<UNKNOWN {:?}>", self.0))
    }
  }
}
impl<'a> flatbuffers::Follow<'a> for SeekerType {
  type Inner = Self;
  #[inline]
  unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
    let b = flatbuffers::read_scalar_at::<i8>(buf, loc);
    Self(b)
  }
}

impl flatbuffers::Push for SeekerType {
    type Output = SeekerType;
    #[inline]
    unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
        flatbuffers::emplace_scalar::<i8>(dst, self.0);
    }
}

impl flatbuffers::EndianScalar for SeekerType {
  type Scalar = i8;
  #[inline]
  fn to_little_endian(self) -> i8 {
    self.0.to_le()
  }
  #[inline]
  #[allow(clippy::wrong_self_convention)]
  fn from_little_endian(v: i8) -> Self {
    let b = i8::from_le(v);
    Self(b)
  }
}

impl<'a> flatbuffers::Verifiable for SeekerType {
  #[inline]
  fn run_verifier(
    v: &mut flatbuffers::Verifier, pos: usize
  ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
    use self::flatbuffers::Verifiable;
    i8::run_verifier(v, pos)
  }
}

impl flatbuffers::SimpleToVerifyInSlice for SeekerType {}
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_GUIDANCE_LAW: i8 = 0;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_GUIDANCE_LAW: i8 = 10;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_GUIDANCE_LAW: [GuidanceLaw; 11] = [
  GuidanceLaw::NONE,
  GuidanceLaw::PURE_PURSUIT,
  GuidanceLaw::LEAD_PURSUIT,
  GuidanceLaw::PROPORTIONAL_NAV,
  GuidanceLaw::AUGMENTED_PN,
  GuidanceLaw::OPTIMAL_GUIDANCE,
  GuidanceLaw::COMMAND_LOS,
  GuidanceLaw::BEAM_RIDING,
  GuidanceLaw::TVM,
  GuidanceLaw::LOFT,
  GuidanceLaw::TERRAIN_FOLLOW,
];

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
#[repr(transparent)]
pub struct GuidanceLaw(pub i8);
#[allow(non_upper_case_globals)]
impl GuidanceLaw {
  pub const NONE: Self = Self(0);
  pub const PURE_PURSUIT: Self = Self(1);
  pub const LEAD_PURSUIT: Self = Self(2);
  pub const PROPORTIONAL_NAV: Self = Self(3);
  pub const AUGMENTED_PN: Self = Self(4);
  pub const OPTIMAL_GUIDANCE: Self = Self(5);
  pub const COMMAND_LOS: Self = Self(6);
  pub const BEAM_RIDING: Self = Self(7);
  pub const TVM: Self = Self(8);
  pub const LOFT: Self = Self(9);
  pub const TERRAIN_FOLLOW: Self = Self(10);

  pub const ENUM_MIN: i8 = 0;
  pub const ENUM_MAX: i8 = 10;
  pub const ENUM_VALUES: &'static [Self] = &[
    Self::NONE,
    Self::PURE_PURSUIT,
    Self::LEAD_PURSUIT,
    Self::PROPORTIONAL_NAV,
    Self::AUGMENTED_PN,
    Self::OPTIMAL_GUIDANCE,
    Self::COMMAND_LOS,
    Self::BEAM_RIDING,
    Self::TVM,
    Self::LOFT,
    Self::TERRAIN_FOLLOW,
  ];
  /// Returns the variant's name or "" if unknown.
  pub fn variant_name(self) -> Option<&'static str> {
    match self {
      Self::NONE => Some("NONE"),
      Self::PURE_PURSUIT => Some("PURE_PURSUIT"),
      Self::LEAD_PURSUIT => Some("LEAD_PURSUIT"),
      Self::PROPORTIONAL_NAV => Some("PROPORTIONAL_NAV"),
      Self::AUGMENTED_PN => Some("AUGMENTED_PN"),
      Self::OPTIMAL_GUIDANCE => Some("OPTIMAL_GUIDANCE"),
      Self::COMMAND_LOS => Some("COMMAND_LOS"),
      Self::BEAM_RIDING => Some("BEAM_RIDING"),
      Self::TVM => Some("TVM"),
      Self::LOFT => Some("LOFT"),
      Self::TERRAIN_FOLLOW => Some("TERRAIN_FOLLOW"),
      _ => None,
    }
  }
}
impl core::fmt::Debug for GuidanceLaw {
  fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
    if let Some(name) = self.variant_name() {
      f.write_str(name)
    } else {
      f.write_fmt(format_args!("<UNKNOWN {:?}>", self.0))
    }
  }
}
impl<'a> flatbuffers::Follow<'a> for GuidanceLaw {
  type Inner = Self;
  #[inline]
  unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
    let b = flatbuffers::read_scalar_at::<i8>(buf, loc);
    Self(b)
  }
}

impl flatbuffers::Push for GuidanceLaw {
    type Output = GuidanceLaw;
    #[inline]
    unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
        flatbuffers::emplace_scalar::<i8>(dst, self.0);
    }
}

impl flatbuffers::EndianScalar for GuidanceLaw {
  type Scalar = i8;
  #[inline]
  fn to_little_endian(self) -> i8 {
    self.0.to_le()
  }
  #[inline]
  #[allow(clippy::wrong_self_convention)]
  fn from_little_endian(v: i8) -> Self {
    let b = i8::from_le(v);
    Self(b)
  }
}

impl<'a> flatbuffers::Verifiable for GuidanceLaw {
  #[inline]
  fn run_verifier(
    v: &mut flatbuffers::Verifier, pos: usize
  ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
    use self::flatbuffers::Verifiable;
    i8::run_verifier(v, pos)
  }
}

impl flatbuffers::SimpleToVerifyInSlice for GuidanceLaw {}
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_MISSILE_PHASE: i8 = 0;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_MISSILE_PHASE: i8 = 8;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_MISSILE_PHASE: [MissilePhase; 9] = [
  MissilePhase::CAPTIVE,
  MissilePhase::LAUNCH,
  MissilePhase::BOOST,
  MissilePhase::SUSTAIN,
  MissilePhase::COAST,
  MissilePhase::TERMINAL,
  MissilePhase::INTERCEPT,
  MissilePhase::MISS,
  MissilePhase::SELF_DESTRUCT,
];

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
#[repr(transparent)]
pub struct MissilePhase(pub i8);
#[allow(non_upper_case_globals)]
impl MissilePhase {
  pub const CAPTIVE: Self = Self(0);
  pub const LAUNCH: Self = Self(1);
  pub const BOOST: Self = Self(2);
  pub const SUSTAIN: Self = Self(3);
  pub const COAST: Self = Self(4);
  pub const TERMINAL: Self = Self(5);
  pub const INTERCEPT: Self = Self(6);
  pub const MISS: Self = Self(7);
  pub const SELF_DESTRUCT: Self = Self(8);

  pub const ENUM_MIN: i8 = 0;
  pub const ENUM_MAX: i8 = 8;
  pub const ENUM_VALUES: &'static [Self] = &[
    Self::CAPTIVE,
    Self::LAUNCH,
    Self::BOOST,
    Self::SUSTAIN,
    Self::COAST,
    Self::TERMINAL,
    Self::INTERCEPT,
    Self::MISS,
    Self::SELF_DESTRUCT,
  ];
  /// Returns the variant's name or "" if unknown.
  pub fn variant_name(self) -> Option<&'static str> {
    match self {
      Self::CAPTIVE => Some("CAPTIVE"),
      Self::LAUNCH => Some("LAUNCH"),
      Self::BOOST => Some("BOOST"),
      Self::SUSTAIN => Some("SUSTAIN"),
      Self::COAST => Some("COAST"),
      Self::TERMINAL => Some("TERMINAL"),
      Self::INTERCEPT => Some("INTERCEPT"),
      Self::MISS => Some("MISS"),
      Self::SELF_DESTRUCT => Some("SELF_DESTRUCT"),
      _ => None,
    }
  }
}
impl core::fmt::Debug for MissilePhase {
  fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
    if let Some(name) = self.variant_name() {
      f.write_str(name)
    } else {
      f.write_fmt(format_args!("<UNKNOWN {:?}>", self.0))
    }
  }
}
impl<'a> flatbuffers::Follow<'a> for MissilePhase {
  type Inner = Self;
  #[inline]
  unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
    let b = flatbuffers::read_scalar_at::<i8>(buf, loc);
    Self(b)
  }
}

impl flatbuffers::Push for MissilePhase {
    type Output = MissilePhase;
    #[inline]
    unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
        flatbuffers::emplace_scalar::<i8>(dst, self.0);
    }
}

impl flatbuffers::EndianScalar for MissilePhase {
  type Scalar = i8;
  #[inline]
  fn to_little_endian(self) -> i8 {
    self.0.to_le()
  }
  #[inline]
  #[allow(clippy::wrong_self_convention)]
  fn from_little_endian(v: i8) -> Self {
    let b = i8::from_le(v);
    Self(b)
  }
}

impl<'a> flatbuffers::Verifiable for MissilePhase {
  #[inline]
  fn run_verifier(
    v: &mut flatbuffers::Verifier, pos: usize
  ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
    use self::flatbuffers::Verifiable;
    i8::run_verifier(v, pos)
  }
}

impl flatbuffers::SimpleToVerifyInSlice for MissilePhase {}
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MIN_SEEKER_STATUS: i8 = 0;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
pub const ENUM_MAX_SEEKER_STATUS: i8 = 6;
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
#[allow(non_camel_case_types)]
pub const ENUM_VALUES_SEEKER_STATUS: [SeekerStatus; 7] = [
  SeekerStatus::OFF,
  SeekerStatus::CAGED,
  SeekerStatus::UNCAGED,
  SeekerStatus::ACQUIRING,
  SeekerStatus::TRACKING,
  SeekerStatus::MEMORY,
  SeekerStatus::JAMMED,
];

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
#[repr(transparent)]
pub struct SeekerStatus(pub i8);
#[allow(non_upper_case_globals)]
impl SeekerStatus {
  pub const OFF: Self = Self(0);
  pub const CAGED: Self = Self(1);
  pub const UNCAGED: Self = Self(2);
  pub const ACQUIRING: Self = Self(3);
  pub const TRACKING: Self = Self(4);
  pub const MEMORY: Self = Self(5);
  pub const JAMMED: Self = Self(6);

  pub const ENUM_MIN: i8 = 0;
  pub const ENUM_MAX: i8 = 6;
  pub const ENUM_VALUES: &'static [Self] = &[
    Self::OFF,
    Self::CAGED,
    Self::UNCAGED,
    Self::ACQUIRING,
    Self::TRACKING,
    Self::MEMORY,
    Self::JAMMED,
  ];
  /// Returns the variant's name or "" if unknown.
  pub fn variant_name(self) -> Option<&'static str> {
    match self {
      Self::OFF => Some("OFF"),
      Self::CAGED => Some("CAGED"),
      Self::UNCAGED => Some("UNCAGED"),
      Self::ACQUIRING => Some("ACQUIRING"),
      Self::TRACKING => Some("TRACKING"),
      Self::MEMORY => Some("MEMORY"),
      Self::JAMMED => Some("JAMMED"),
      _ => None,
    }
  }
}
impl core::fmt::Debug for SeekerStatus {
  fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
    if let Some(name) = self.variant_name() {
      f.write_str(name)
    } else {
      f.write_fmt(format_args!("<UNKNOWN {:?}>", self.0))
    }
  }
}
impl<'a> flatbuffers::Follow<'a> for SeekerStatus {
  type Inner = Self;
  #[inline]
  unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
    let b = flatbuffers::read_scalar_at::<i8>(buf, loc);
    Self(b)
  }
}

impl flatbuffers::Push for SeekerStatus {
    type Output = SeekerStatus;
    #[inline]
    unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
        flatbuffers::emplace_scalar::<i8>(dst, self.0);
    }
}

impl flatbuffers::EndianScalar for SeekerStatus {
  type Scalar = i8;
  #[inline]
  fn to_little_endian(self) -> i8 {
    self.0.to_le()
  }
  #[inline]
  #[allow(clippy::wrong_self_convention)]
  fn from_little_endian(v: i8) -> Self {
    let b = i8::from_le(v);
    Self(b)
  }
}

impl<'a> flatbuffers::Verifiable for SeekerStatus {
  #[inline]
  fn run_verifier(
    v: &mut flatbuffers::Verifier, pos: usize
  ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
    use self::flatbuffers::Verifiable;
    i8::run_verifier(v, pos)
  }
}

impl flatbuffers::SimpleToVerifyInSlice for SeekerStatus {}
pub enum MSLOffset {}
#[derive(Copy, Clone, PartialEq)]

/// Guided Missiles
pub struct MSL<'a> {
  pub _tab: flatbuffers::Table<'a>,
}

impl<'a> flatbuffers::Follow<'a> for MSL<'a> {
  type Inner = MSL<'a>;
  #[inline]
  unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
    Self { _tab: flatbuffers::Table::new(buf, loc) }
  }
}

impl<'a> MSL<'a> {
  pub const VT_POSITION_X: flatbuffers::VOffsetT = 4;
  pub const VT_POSITION_Y: flatbuffers::VOffsetT = 6;
  pub const VT_POSITION_Z: flatbuffers::VOffsetT = 8;
  pub const VT_VELOCITY_X: flatbuffers::VOffsetT = 10;
  pub const VT_VELOCITY_Y: flatbuffers::VOffsetT = 12;
  pub const VT_VELOCITY_Z: flatbuffers::VOffsetT = 14;
  pub const VT_ATTITUDE_X: flatbuffers::VOffsetT = 16;
  pub const VT_ATTITUDE_Y: flatbuffers::VOffsetT = 18;
  pub const VT_ATTITUDE_Z: flatbuffers::VOffsetT = 20;
  pub const VT_ATTITUDE_W: flatbuffers::VOffsetT = 22;
  pub const VT_OMEGA_X: flatbuffers::VOffsetT = 24;
  pub const VT_OMEGA_Y: flatbuffers::VOffsetT = 26;
  pub const VT_OMEGA_Z: flatbuffers::VOffsetT = 28;
  pub const VT_MASS: flatbuffers::VOffsetT = 30;
  pub const VT_MASS_INITIAL: flatbuffers::VOffsetT = 32;
  pub const VT_TARGET_POSITION_X: flatbuffers::VOffsetT = 34;
  pub const VT_TARGET_POSITION_Y: flatbuffers::VOffsetT = 36;
  pub const VT_TARGET_POSITION_Z: flatbuffers::VOffsetT = 38;
  pub const VT_TARGET_VELOCITY_X: flatbuffers::VOffsetT = 40;
  pub const VT_TARGET_VELOCITY_Y: flatbuffers::VOffsetT = 42;
  pub const VT_TARGET_VELOCITY_Z: flatbuffers::VOffsetT = 44;
  pub const VT_MISS_DISTANCE: flatbuffers::VOffsetT = 46;
  pub const VT_SEEKER: flatbuffers::VOffsetT = 48;
  pub const VT_MOTOR: flatbuffers::VOffsetT = 50;
  pub const VT_GUIDANCE_CMD: flatbuffers::VOffsetT = 52;
  pub const VT_PHASE: flatbuffers::VOffsetT = 54;
  pub const VT_GUIDANCE_LAW: flatbuffers::VOffsetT = 56;
  pub const VT_TYPE: flatbuffers::VOffsetT = 58;
  pub const VT_ARMED: flatbuffers::VOffsetT = 60;
  pub const VT_TIME_OF_FLIGHT: flatbuffers::VOffsetT = 62;
  pub const VT_MAX_G: flatbuffers::VOffsetT = 64;
  pub const VT_RESERVED: flatbuffers::VOffsetT = 66;

  #[inline]
  pub unsafe fn init_from_table(table: flatbuffers::Table<'a>) -> Self {
    MSL { _tab: table }
  }
  #[allow(unused_mut)]
  pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
    _fbb: &'mut_bldr mut flatbuffers::FlatBufferBuilder<'bldr, A>,
    args: &'args MSLArgs<'args>
  ) -> flatbuffers::WIPOffset<MSL<'bldr>> {
    let mut builder = MSLBuilder::new(_fbb);
    builder.add_MISS_DISTANCE(args.MISS_DISTANCE);
    builder.add_TARGET_VELOCITY_Z(args.TARGET_VELOCITY_Z);
    builder.add_TARGET_VELOCITY_Y(args.TARGET_VELOCITY_Y);
    builder.add_TARGET_VELOCITY_X(args.TARGET_VELOCITY_X);
    builder.add_TARGET_POSITION_Z(args.TARGET_POSITION_Z);
    builder.add_TARGET_POSITION_Y(args.TARGET_POSITION_Y);
    builder.add_TARGET_POSITION_X(args.TARGET_POSITION_X);
    builder.add_MASS_INITIAL(args.MASS_INITIAL);
    builder.add_MASS(args.MASS);
    builder.add_OMEGA_Z(args.OMEGA_Z);
    builder.add_OMEGA_Y(args.OMEGA_Y);
    builder.add_OMEGA_X(args.OMEGA_X);
    builder.add_ATTITUDE_W(args.ATTITUDE_W);
    builder.add_ATTITUDE_Z(args.ATTITUDE_Z);
    builder.add_ATTITUDE_Y(args.ATTITUDE_Y);
    builder.add_ATTITUDE_X(args.ATTITUDE_X);
    builder.add_VELOCITY_Z(args.VELOCITY_Z);
    builder.add_VELOCITY_Y(args.VELOCITY_Y);
    builder.add_VELOCITY_X(args.VELOCITY_X);
    builder.add_POSITION_Z(args.POSITION_Z);
    builder.add_POSITION_Y(args.POSITION_Y);
    builder.add_POSITION_X(args.POSITION_X);
    if let Some(x) = args.RESERVED { builder.add_RESERVED(x); }
    builder.add_MAX_G(args.MAX_G);
    builder.add_TIME_OF_FLIGHT(args.TIME_OF_FLIGHT);
    if let Some(x) = args.GUIDANCE_CMD { builder.add_GUIDANCE_CMD(x); }
    if let Some(x) = args.MOTOR { builder.add_MOTOR(x); }
    if let Some(x) = args.SEEKER { builder.add_SEEKER(x); }
    builder.add_ARMED(args.ARMED);
    builder.add_TYPE(args.TYPE);
    builder.add_GUIDANCE_LAW(args.GUIDANCE_LAW);
    builder.add_PHASE(args.PHASE);
    builder.finish()
  }

  pub fn unpack(&self) -> MSLT {
    let POSITION_X = self.POSITION_X();
    let POSITION_Y = self.POSITION_Y();
    let POSITION_Z = self.POSITION_Z();
    let VELOCITY_X = self.VELOCITY_X();
    let VELOCITY_Y = self.VELOCITY_Y();
    let VELOCITY_Z = self.VELOCITY_Z();
    let ATTITUDE_X = self.ATTITUDE_X();
    let ATTITUDE_Y = self.ATTITUDE_Y();
    let ATTITUDE_Z = self.ATTITUDE_Z();
    let ATTITUDE_W = self.ATTITUDE_W();
    let OMEGA_X = self.OMEGA_X();
    let OMEGA_Y = self.OMEGA_Y();
    let OMEGA_Z = self.OMEGA_Z();
    let MASS = self.MASS();
    let MASS_INITIAL = self.MASS_INITIAL();
    let TARGET_POSITION_X = self.TARGET_POSITION_X();
    let TARGET_POSITION_Y = self.TARGET_POSITION_Y();
    let TARGET_POSITION_Z = self.TARGET_POSITION_Z();
    let TARGET_VELOCITY_X = self.TARGET_VELOCITY_X();
    let TARGET_VELOCITY_Y = self.TARGET_VELOCITY_Y();
    let TARGET_VELOCITY_Z = self.TARGET_VELOCITY_Z();
    let MISS_DISTANCE = self.MISS_DISTANCE();
    let SEEKER = self.SEEKER().map(|x| {
      x.to_string()
    });
    let MOTOR = self.MOTOR().map(|x| {
      x.to_string()
    });
    let GUIDANCE_CMD = self.GUIDANCE_CMD().map(|x| {
      x.to_string()
    });
    let PHASE = self.PHASE();
    let GUIDANCE_LAW = self.GUIDANCE_LAW();
    let TYPE = self.TYPE();
    let ARMED = self.ARMED();
    let TIME_OF_FLIGHT = self.TIME_OF_FLIGHT();
    let MAX_G = self.MAX_G();
    let RESERVED = self.RESERVED().map(|x| {
      x.into_iter().collect()
    });
    MSLT {
      POSITION_X,
      POSITION_Y,
      POSITION_Z,
      VELOCITY_X,
      VELOCITY_Y,
      VELOCITY_Z,
      ATTITUDE_X,
      ATTITUDE_Y,
      ATTITUDE_Z,
      ATTITUDE_W,
      OMEGA_X,
      OMEGA_Y,
      OMEGA_Z,
      MASS,
      MASS_INITIAL,
      TARGET_POSITION_X,
      TARGET_POSITION_Y,
      TARGET_POSITION_Z,
      TARGET_VELOCITY_X,
      TARGET_VELOCITY_Y,
      TARGET_VELOCITY_Z,
      MISS_DISTANCE,
      SEEKER,
      MOTOR,
      GUIDANCE_CMD,
      PHASE,
      GUIDANCE_LAW,
      TYPE,
      ARMED,
      TIME_OF_FLIGHT,
      MAX_G,
      RESERVED,
    }
  }

  #[inline]
  pub fn POSITION_X(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_POSITION_X, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn POSITION_Y(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_POSITION_Y, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn POSITION_Z(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_POSITION_Z, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn VELOCITY_X(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_VELOCITY_X, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn VELOCITY_Y(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_VELOCITY_Y, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn VELOCITY_Z(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_VELOCITY_Z, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn ATTITUDE_X(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_ATTITUDE_X, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn ATTITUDE_Y(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_ATTITUDE_Y, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn ATTITUDE_Z(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_ATTITUDE_Z, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn ATTITUDE_W(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_ATTITUDE_W, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn OMEGA_X(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_OMEGA_X, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn OMEGA_Y(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_OMEGA_Y, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn OMEGA_Z(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_OMEGA_Z, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn MASS(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_MASS, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn MASS_INITIAL(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_MASS_INITIAL, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn TARGET_POSITION_X(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_TARGET_POSITION_X, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn TARGET_POSITION_Y(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_TARGET_POSITION_Y, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn TARGET_POSITION_Z(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_TARGET_POSITION_Z, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn TARGET_VELOCITY_X(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_TARGET_VELOCITY_X, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn TARGET_VELOCITY_Y(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_TARGET_VELOCITY_Y, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn TARGET_VELOCITY_Z(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_TARGET_VELOCITY_Z, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn MISS_DISTANCE(&self) -> f64 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f64>(MSL::VT_MISS_DISTANCE, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn SEEKER(&self) -> Option<&'a str> {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(MSL::VT_SEEKER, None)}
  }
  #[inline]
  pub fn MOTOR(&self) -> Option<&'a str> {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(MSL::VT_MOTOR, None)}
  }
  #[inline]
  pub fn GUIDANCE_CMD(&self) -> Option<&'a str> {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(MSL::VT_GUIDANCE_CMD, None)}
  }
  #[inline]
  pub fn PHASE(&self) -> u8 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<u8>(MSL::VT_PHASE, Some(0)).unwrap()}
  }
  #[inline]
  pub fn GUIDANCE_LAW(&self) -> u8 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<u8>(MSL::VT_GUIDANCE_LAW, Some(0)).unwrap()}
  }
  #[inline]
  pub fn TYPE(&self) -> u8 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<u8>(MSL::VT_TYPE, Some(0)).unwrap()}
  }
  #[inline]
  pub fn ARMED(&self) -> u8 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<u8>(MSL::VT_ARMED, Some(0)).unwrap()}
  }
  #[inline]
  pub fn TIME_OF_FLIGHT(&self) -> f32 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f32>(MSL::VT_TIME_OF_FLIGHT, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn MAX_G(&self) -> f32 {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<f32>(MSL::VT_MAX_G, Some(0.0)).unwrap()}
  }
  #[inline]
  pub fn RESERVED(&self) -> Option<flatbuffers::Vector<'a, u8>> {
    // Safety:
    // Created from valid Table for this object
    // which contains a valid value in this slot
    unsafe { self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(MSL::VT_RESERVED, None)}
  }
}

impl flatbuffers::Verifiable for MSL<'_> {
  #[inline]
  fn run_verifier(
    v: &mut flatbuffers::Verifier, pos: usize
  ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
    use self::flatbuffers::Verifiable;
    v.visit_table(pos)?
     .visit_field::<f64>("POSITION_X", Self::VT_POSITION_X, false)?
     .visit_field::<f64>("POSITION_Y", Self::VT_POSITION_Y, false)?
     .visit_field::<f64>("POSITION_Z", Self::VT_POSITION_Z, false)?
     .visit_field::<f64>("VELOCITY_X", Self::VT_VELOCITY_X, false)?
     .visit_field::<f64>("VELOCITY_Y", Self::VT_VELOCITY_Y, false)?
     .visit_field::<f64>("VELOCITY_Z", Self::VT_VELOCITY_Z, false)?
     .visit_field::<f64>("ATTITUDE_X", Self::VT_ATTITUDE_X, false)?
     .visit_field::<f64>("ATTITUDE_Y", Self::VT_ATTITUDE_Y, false)?
     .visit_field::<f64>("ATTITUDE_Z", Self::VT_ATTITUDE_Z, false)?
     .visit_field::<f64>("ATTITUDE_W", Self::VT_ATTITUDE_W, false)?
     .visit_field::<f64>("OMEGA_X", Self::VT_OMEGA_X, false)?
     .visit_field::<f64>("OMEGA_Y", Self::VT_OMEGA_Y, false)?
     .visit_field::<f64>("OMEGA_Z", Self::VT_OMEGA_Z, false)?
     .visit_field::<f64>("MASS", Self::VT_MASS, false)?
     .visit_field::<f64>("MASS_INITIAL", Self::VT_MASS_INITIAL, false)?
     .visit_field::<f64>("TARGET_POSITION_X", Self::VT_TARGET_POSITION_X, false)?
     .visit_field::<f64>("TARGET_POSITION_Y", Self::VT_TARGET_POSITION_Y, false)?
     .visit_field::<f64>("TARGET_POSITION_Z", Self::VT_TARGET_POSITION_Z, false)?
     .visit_field::<f64>("TARGET_VELOCITY_X", Self::VT_TARGET_VELOCITY_X, false)?
     .visit_field::<f64>("TARGET_VELOCITY_Y", Self::VT_TARGET_VELOCITY_Y, false)?
     .visit_field::<f64>("TARGET_VELOCITY_Z", Self::VT_TARGET_VELOCITY_Z, false)?
     .visit_field::<f64>("MISS_DISTANCE", Self::VT_MISS_DISTANCE, false)?
     .visit_field::<flatbuffers::ForwardsUOffset<&str>>("SEEKER", Self::VT_SEEKER, false)?
     .visit_field::<flatbuffers::ForwardsUOffset<&str>>("MOTOR", Self::VT_MOTOR, false)?
     .visit_field::<flatbuffers::ForwardsUOffset<&str>>("GUIDANCE_CMD", Self::VT_GUIDANCE_CMD, false)?
     .visit_field::<u8>("PHASE", Self::VT_PHASE, false)?
     .visit_field::<u8>("GUIDANCE_LAW", Self::VT_GUIDANCE_LAW, false)?
     .visit_field::<u8>("TYPE", Self::VT_TYPE, false)?
     .visit_field::<u8>("ARMED", Self::VT_ARMED, false)?
     .visit_field::<f32>("TIME_OF_FLIGHT", Self::VT_TIME_OF_FLIGHT, false)?
     .visit_field::<f32>("MAX_G", Self::VT_MAX_G, false)?
     .visit_field::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'_, u8>>>("RESERVED", Self::VT_RESERVED, false)?
     .finish();
    Ok(())
  }
}
pub struct MSLArgs<'a> {
    pub POSITION_X: f64,
    pub POSITION_Y: f64,
    pub POSITION_Z: f64,
    pub VELOCITY_X: f64,
    pub VELOCITY_Y: f64,
    pub VELOCITY_Z: f64,
    pub ATTITUDE_X: f64,
    pub ATTITUDE_Y: f64,
    pub ATTITUDE_Z: f64,
    pub ATTITUDE_W: f64,
    pub OMEGA_X: f64,
    pub OMEGA_Y: f64,
    pub OMEGA_Z: f64,
    pub MASS: f64,
    pub MASS_INITIAL: f64,
    pub TARGET_POSITION_X: f64,
    pub TARGET_POSITION_Y: f64,
    pub TARGET_POSITION_Z: f64,
    pub TARGET_VELOCITY_X: f64,
    pub TARGET_VELOCITY_Y: f64,
    pub TARGET_VELOCITY_Z: f64,
    pub MISS_DISTANCE: f64,
    pub SEEKER: Option<flatbuffers::WIPOffset<&'a str>>,
    pub MOTOR: Option<flatbuffers::WIPOffset<&'a str>>,
    pub GUIDANCE_CMD: Option<flatbuffers::WIPOffset<&'a str>>,
    pub PHASE: u8,
    pub GUIDANCE_LAW: u8,
    pub TYPE: u8,
    pub ARMED: u8,
    pub TIME_OF_FLIGHT: f32,
    pub MAX_G: f32,
    pub RESERVED: Option<flatbuffers::WIPOffset<flatbuffers::Vector<'a, u8>>>,
}
impl<'a> Default for MSLArgs<'a> {
  #[inline]
  fn default() -> Self {
    MSLArgs {
      POSITION_X: 0.0,
      POSITION_Y: 0.0,
      POSITION_Z: 0.0,
      VELOCITY_X: 0.0,
      VELOCITY_Y: 0.0,
      VELOCITY_Z: 0.0,
      ATTITUDE_X: 0.0,
      ATTITUDE_Y: 0.0,
      ATTITUDE_Z: 0.0,
      ATTITUDE_W: 0.0,
      OMEGA_X: 0.0,
      OMEGA_Y: 0.0,
      OMEGA_Z: 0.0,
      MASS: 0.0,
      MASS_INITIAL: 0.0,
      TARGET_POSITION_X: 0.0,
      TARGET_POSITION_Y: 0.0,
      TARGET_POSITION_Z: 0.0,
      TARGET_VELOCITY_X: 0.0,
      TARGET_VELOCITY_Y: 0.0,
      TARGET_VELOCITY_Z: 0.0,
      MISS_DISTANCE: 0.0,
      SEEKER: None,
      MOTOR: None,
      GUIDANCE_CMD: None,
      PHASE: 0,
      GUIDANCE_LAW: 0,
      TYPE: 0,
      ARMED: 0,
      TIME_OF_FLIGHT: 0.0,
      MAX_G: 0.0,
      RESERVED: None,
    }
  }
}

pub struct MSLBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
  fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
  start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
}
impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> MSLBuilder<'a, 'b, A> {
  #[inline]
  pub fn add_POSITION_X(&mut self, POSITION_X: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_POSITION_X, POSITION_X, 0.0);
  }
  #[inline]
  pub fn add_POSITION_Y(&mut self, POSITION_Y: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_POSITION_Y, POSITION_Y, 0.0);
  }
  #[inline]
  pub fn add_POSITION_Z(&mut self, POSITION_Z: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_POSITION_Z, POSITION_Z, 0.0);
  }
  #[inline]
  pub fn add_VELOCITY_X(&mut self, VELOCITY_X: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_VELOCITY_X, VELOCITY_X, 0.0);
  }
  #[inline]
  pub fn add_VELOCITY_Y(&mut self, VELOCITY_Y: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_VELOCITY_Y, VELOCITY_Y, 0.0);
  }
  #[inline]
  pub fn add_VELOCITY_Z(&mut self, VELOCITY_Z: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_VELOCITY_Z, VELOCITY_Z, 0.0);
  }
  #[inline]
  pub fn add_ATTITUDE_X(&mut self, ATTITUDE_X: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_ATTITUDE_X, ATTITUDE_X, 0.0);
  }
  #[inline]
  pub fn add_ATTITUDE_Y(&mut self, ATTITUDE_Y: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_ATTITUDE_Y, ATTITUDE_Y, 0.0);
  }
  #[inline]
  pub fn add_ATTITUDE_Z(&mut self, ATTITUDE_Z: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_ATTITUDE_Z, ATTITUDE_Z, 0.0);
  }
  #[inline]
  pub fn add_ATTITUDE_W(&mut self, ATTITUDE_W: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_ATTITUDE_W, ATTITUDE_W, 0.0);
  }
  #[inline]
  pub fn add_OMEGA_X(&mut self, OMEGA_X: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_OMEGA_X, OMEGA_X, 0.0);
  }
  #[inline]
  pub fn add_OMEGA_Y(&mut self, OMEGA_Y: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_OMEGA_Y, OMEGA_Y, 0.0);
  }
  #[inline]
  pub fn add_OMEGA_Z(&mut self, OMEGA_Z: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_OMEGA_Z, OMEGA_Z, 0.0);
  }
  #[inline]
  pub fn add_MASS(&mut self, MASS: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_MASS, MASS, 0.0);
  }
  #[inline]
  pub fn add_MASS_INITIAL(&mut self, MASS_INITIAL: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_MASS_INITIAL, MASS_INITIAL, 0.0);
  }
  #[inline]
  pub fn add_TARGET_POSITION_X(&mut self, TARGET_POSITION_X: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_TARGET_POSITION_X, TARGET_POSITION_X, 0.0);
  }
  #[inline]
  pub fn add_TARGET_POSITION_Y(&mut self, TARGET_POSITION_Y: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_TARGET_POSITION_Y, TARGET_POSITION_Y, 0.0);
  }
  #[inline]
  pub fn add_TARGET_POSITION_Z(&mut self, TARGET_POSITION_Z: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_TARGET_POSITION_Z, TARGET_POSITION_Z, 0.0);
  }
  #[inline]
  pub fn add_TARGET_VELOCITY_X(&mut self, TARGET_VELOCITY_X: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_TARGET_VELOCITY_X, TARGET_VELOCITY_X, 0.0);
  }
  #[inline]
  pub fn add_TARGET_VELOCITY_Y(&mut self, TARGET_VELOCITY_Y: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_TARGET_VELOCITY_Y, TARGET_VELOCITY_Y, 0.0);
  }
  #[inline]
  pub fn add_TARGET_VELOCITY_Z(&mut self, TARGET_VELOCITY_Z: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_TARGET_VELOCITY_Z, TARGET_VELOCITY_Z, 0.0);
  }
  #[inline]
  pub fn add_MISS_DISTANCE(&mut self, MISS_DISTANCE: f64) {
    self.fbb_.push_slot::<f64>(MSL::VT_MISS_DISTANCE, MISS_DISTANCE, 0.0);
  }
  #[inline]
  pub fn add_SEEKER(&mut self, SEEKER: flatbuffers::WIPOffset<&'b  str>) {
    self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(MSL::VT_SEEKER, SEEKER);
  }
  #[inline]
  pub fn add_MOTOR(&mut self, MOTOR: flatbuffers::WIPOffset<&'b  str>) {
    self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(MSL::VT_MOTOR, MOTOR);
  }
  #[inline]
  pub fn add_GUIDANCE_CMD(&mut self, GUIDANCE_CMD: flatbuffers::WIPOffset<&'b  str>) {
    self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(MSL::VT_GUIDANCE_CMD, GUIDANCE_CMD);
  }
  #[inline]
  pub fn add_PHASE(&mut self, PHASE: u8) {
    self.fbb_.push_slot::<u8>(MSL::VT_PHASE, PHASE, 0);
  }
  #[inline]
  pub fn add_GUIDANCE_LAW(&mut self, GUIDANCE_LAW: u8) {
    self.fbb_.push_slot::<u8>(MSL::VT_GUIDANCE_LAW, GUIDANCE_LAW, 0);
  }
  #[inline]
  pub fn add_TYPE(&mut self, TYPE: u8) {
    self.fbb_.push_slot::<u8>(MSL::VT_TYPE, TYPE, 0);
  }
  #[inline]
  pub fn add_ARMED(&mut self, ARMED: u8) {
    self.fbb_.push_slot::<u8>(MSL::VT_ARMED, ARMED, 0);
  }
  #[inline]
  pub fn add_TIME_OF_FLIGHT(&mut self, TIME_OF_FLIGHT: f32) {
    self.fbb_.push_slot::<f32>(MSL::VT_TIME_OF_FLIGHT, TIME_OF_FLIGHT, 0.0);
  }
  #[inline]
  pub fn add_MAX_G(&mut self, MAX_G: f32) {
    self.fbb_.push_slot::<f32>(MSL::VT_MAX_G, MAX_G, 0.0);
  }
  #[inline]
  pub fn add_RESERVED(&mut self, RESERVED: flatbuffers::WIPOffset<flatbuffers::Vector<'b , u8>>) {
    self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(MSL::VT_RESERVED, RESERVED);
  }
  #[inline]
  pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>) -> MSLBuilder<'a, 'b, A> {
    let start = _fbb.start_table();
    MSLBuilder {
      fbb_: _fbb,
      start_: start,
    }
  }
  #[inline]
  pub fn finish(self) -> flatbuffers::WIPOffset<MSL<'a>> {
    let o = self.fbb_.end_table(self.start_);
    flatbuffers::WIPOffset::new(o.value())
  }
}

impl core::fmt::Debug for MSL<'_> {
  fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
    let mut ds = f.debug_struct("MSL");
      ds.field("POSITION_X", &self.POSITION_X());
      ds.field("POSITION_Y", &self.POSITION_Y());
      ds.field("POSITION_Z", &self.POSITION_Z());
      ds.field("VELOCITY_X", &self.VELOCITY_X());
      ds.field("VELOCITY_Y", &self.VELOCITY_Y());
      ds.field("VELOCITY_Z", &self.VELOCITY_Z());
      ds.field("ATTITUDE_X", &self.ATTITUDE_X());
      ds.field("ATTITUDE_Y", &self.ATTITUDE_Y());
      ds.field("ATTITUDE_Z", &self.ATTITUDE_Z());
      ds.field("ATTITUDE_W", &self.ATTITUDE_W());
      ds.field("OMEGA_X", &self.OMEGA_X());
      ds.field("OMEGA_Y", &self.OMEGA_Y());
      ds.field("OMEGA_Z", &self.OMEGA_Z());
      ds.field("MASS", &self.MASS());
      ds.field("MASS_INITIAL", &self.MASS_INITIAL());
      ds.field("TARGET_POSITION_X", &self.TARGET_POSITION_X());
      ds.field("TARGET_POSITION_Y", &self.TARGET_POSITION_Y());
      ds.field("TARGET_POSITION_Z", &self.TARGET_POSITION_Z());
      ds.field("TARGET_VELOCITY_X", &self.TARGET_VELOCITY_X());
      ds.field("TARGET_VELOCITY_Y", &self.TARGET_VELOCITY_Y());
      ds.field("TARGET_VELOCITY_Z", &self.TARGET_VELOCITY_Z());
      ds.field("MISS_DISTANCE", &self.MISS_DISTANCE());
      ds.field("SEEKER", &self.SEEKER());
      ds.field("MOTOR", &self.MOTOR());
      ds.field("GUIDANCE_CMD", &self.GUIDANCE_CMD());
      ds.field("PHASE", &self.PHASE());
      ds.field("GUIDANCE_LAW", &self.GUIDANCE_LAW());
      ds.field("TYPE", &self.TYPE());
      ds.field("ARMED", &self.ARMED());
      ds.field("TIME_OF_FLIGHT", &self.TIME_OF_FLIGHT());
      ds.field("MAX_G", &self.MAX_G());
      ds.field("RESERVED", &self.RESERVED());
      ds.finish()
  }
}
#[non_exhaustive]
#[derive(Debug, Clone, PartialEq)]
pub struct MSLT {
  pub POSITION_X: f64,
  pub POSITION_Y: f64,
  pub POSITION_Z: f64,
  pub VELOCITY_X: f64,
  pub VELOCITY_Y: f64,
  pub VELOCITY_Z: f64,
  pub ATTITUDE_X: f64,
  pub ATTITUDE_Y: f64,
  pub ATTITUDE_Z: f64,
  pub ATTITUDE_W: f64,
  pub OMEGA_X: f64,
  pub OMEGA_Y: f64,
  pub OMEGA_Z: f64,
  pub MASS: f64,
  pub MASS_INITIAL: f64,
  pub TARGET_POSITION_X: f64,
  pub TARGET_POSITION_Y: f64,
  pub TARGET_POSITION_Z: f64,
  pub TARGET_VELOCITY_X: f64,
  pub TARGET_VELOCITY_Y: f64,
  pub TARGET_VELOCITY_Z: f64,
  pub MISS_DISTANCE: f64,
  pub SEEKER: Option<String>,
  pub MOTOR: Option<String>,
  pub GUIDANCE_CMD: Option<String>,
  pub PHASE: u8,
  pub GUIDANCE_LAW: u8,
  pub TYPE: u8,
  pub ARMED: u8,
  pub TIME_OF_FLIGHT: f32,
  pub MAX_G: f32,
  pub RESERVED: Option<Vec<u8>>,
}
impl Default for MSLT {
  fn default() -> Self {
    Self {
      POSITION_X: 0.0,
      POSITION_Y: 0.0,
      POSITION_Z: 0.0,
      VELOCITY_X: 0.0,
      VELOCITY_Y: 0.0,
      VELOCITY_Z: 0.0,
      ATTITUDE_X: 0.0,
      ATTITUDE_Y: 0.0,
      ATTITUDE_Z: 0.0,
      ATTITUDE_W: 0.0,
      OMEGA_X: 0.0,
      OMEGA_Y: 0.0,
      OMEGA_Z: 0.0,
      MASS: 0.0,
      MASS_INITIAL: 0.0,
      TARGET_POSITION_X: 0.0,
      TARGET_POSITION_Y: 0.0,
      TARGET_POSITION_Z: 0.0,
      TARGET_VELOCITY_X: 0.0,
      TARGET_VELOCITY_Y: 0.0,
      TARGET_VELOCITY_Z: 0.0,
      MISS_DISTANCE: 0.0,
      SEEKER: None,
      MOTOR: None,
      GUIDANCE_CMD: None,
      PHASE: 0,
      GUIDANCE_LAW: 0,
      TYPE: 0,
      ARMED: 0,
      TIME_OF_FLIGHT: 0.0,
      MAX_G: 0.0,
      RESERVED: None,
    }
  }
}
impl MSLT {
  pub fn pack<'b, A: flatbuffers::Allocator + 'b>(
    &self,
    _fbb: &mut flatbuffers::FlatBufferBuilder<'b, A>
  ) -> flatbuffers::WIPOffset<MSL<'b>> {
    let POSITION_X = self.POSITION_X;
    let POSITION_Y = self.POSITION_Y;
    let POSITION_Z = self.POSITION_Z;
    let VELOCITY_X = self.VELOCITY_X;
    let VELOCITY_Y = self.VELOCITY_Y;
    let VELOCITY_Z = self.VELOCITY_Z;
    let ATTITUDE_X = self.ATTITUDE_X;
    let ATTITUDE_Y = self.ATTITUDE_Y;
    let ATTITUDE_Z = self.ATTITUDE_Z;
    let ATTITUDE_W = self.ATTITUDE_W;
    let OMEGA_X = self.OMEGA_X;
    let OMEGA_Y = self.OMEGA_Y;
    let OMEGA_Z = self.OMEGA_Z;
    let MASS = self.MASS;
    let MASS_INITIAL = self.MASS_INITIAL;
    let TARGET_POSITION_X = self.TARGET_POSITION_X;
    let TARGET_POSITION_Y = self.TARGET_POSITION_Y;
    let TARGET_POSITION_Z = self.TARGET_POSITION_Z;
    let TARGET_VELOCITY_X = self.TARGET_VELOCITY_X;
    let TARGET_VELOCITY_Y = self.TARGET_VELOCITY_Y;
    let TARGET_VELOCITY_Z = self.TARGET_VELOCITY_Z;
    let MISS_DISTANCE = self.MISS_DISTANCE;
    let SEEKER = self.SEEKER.as_ref().map(|x|{
      _fbb.create_string(x)
    });
    let MOTOR = self.MOTOR.as_ref().map(|x|{
      _fbb.create_string(x)
    });
    let GUIDANCE_CMD = self.GUIDANCE_CMD.as_ref().map(|x|{
      _fbb.create_string(x)
    });
    let PHASE = self.PHASE;
    let GUIDANCE_LAW = self.GUIDANCE_LAW;
    let TYPE = self.TYPE;
    let ARMED = self.ARMED;
    let TIME_OF_FLIGHT = self.TIME_OF_FLIGHT;
    let MAX_G = self.MAX_G;
    let RESERVED = self.RESERVED.as_ref().map(|x|{
      _fbb.create_vector(x)
    });
    MSL::create(_fbb, &MSLArgs{
      POSITION_X,
      POSITION_Y,
      POSITION_Z,
      VELOCITY_X,
      VELOCITY_Y,
      VELOCITY_Z,
      ATTITUDE_X,
      ATTITUDE_Y,
      ATTITUDE_Z,
      ATTITUDE_W,
      OMEGA_X,
      OMEGA_Y,
      OMEGA_Z,
      MASS,
      MASS_INITIAL,
      TARGET_POSITION_X,
      TARGET_POSITION_Y,
      TARGET_POSITION_Z,
      TARGET_VELOCITY_X,
      TARGET_VELOCITY_Y,
      TARGET_VELOCITY_Z,
      MISS_DISTANCE,
      SEEKER,
      MOTOR,
      GUIDANCE_CMD,
      PHASE,
      GUIDANCE_LAW,
      TYPE,
      ARMED,
      TIME_OF_FLIGHT,
      MAX_G,
      RESERVED,
    })
  }
}
#[inline]
/// Verifies that a buffer of bytes contains a `MSL`
/// and returns it.
/// Note that verification is still experimental and may not
/// catch every error, or be maximally performant. For the
/// previous, unchecked, behavior use
/// `root_as_MSL_unchecked`.
pub fn root_as_MSL(buf: &[u8]) -> Result<MSL, flatbuffers::InvalidFlatbuffer> {
  flatbuffers::root::<MSL>(buf)
}
#[inline]
/// Verifies that a buffer of bytes contains a size prefixed
/// `MSL` and returns it.
/// Note that verification is still experimental and may not
/// catch every error, or be maximally performant. For the
/// previous, unchecked, behavior use
/// `size_prefixed_root_as_MSL_unchecked`.
pub fn size_prefixed_root_as_MSL(buf: &[u8]) -> Result<MSL, flatbuffers::InvalidFlatbuffer> {
  flatbuffers::size_prefixed_root::<MSL>(buf)
}
#[inline]
/// Verifies, with the given options, that a buffer of bytes
/// contains a `MSL` and returns it.
/// Note that verification is still experimental and may not
/// catch every error, or be maximally performant. For the
/// previous, unchecked, behavior use
/// `root_as_MSL_unchecked`.
pub fn root_as_MSL_with_opts<'b, 'o>(
  opts: &'o flatbuffers::VerifierOptions,
  buf: &'b [u8],
) -> Result<MSL<'b>, flatbuffers::InvalidFlatbuffer> {
  flatbuffers::root_with_opts::<MSL<'b>>(opts, buf)
}
#[inline]
/// Verifies, with the given verifier options, that a buffer of
/// bytes contains a size prefixed `MSL` and returns
/// it. Note that verification is still experimental and may not
/// catch every error, or be maximally performant. For the
/// previous, unchecked, behavior use
/// `root_as_MSL_unchecked`.
pub fn size_prefixed_root_as_MSL_with_opts<'b, 'o>(
  opts: &'o flatbuffers::VerifierOptions,
  buf: &'b [u8],
) -> Result<MSL<'b>, flatbuffers::InvalidFlatbuffer> {
  flatbuffers::size_prefixed_root_with_opts::<MSL<'b>>(opts, buf)
}
#[inline]
/// Assumes, without verification, that a buffer of bytes contains a MSL and returns it.
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid `MSL`.
pub unsafe fn root_as_MSL_unchecked(buf: &[u8]) -> MSL {
  flatbuffers::root_unchecked::<MSL>(buf)
}
#[inline]
/// Assumes, without verification, that a buffer of bytes contains a size prefixed MSL and returns it.
/// # Safety
/// Callers must trust the given bytes do indeed contain a valid size prefixed `MSL`.
pub unsafe fn size_prefixed_root_as_MSL_unchecked(buf: &[u8]) -> MSL {
  flatbuffers::size_prefixed_root_unchecked::<MSL>(buf)
}
pub const MSL_IDENTIFIER: &str = "$MSL";

#[inline]
pub fn MSL_buffer_has_identifier(buf: &[u8]) -> bool {
  flatbuffers::buffer_has_identifier(buf, MSL_IDENTIFIER, false)
}

#[inline]
pub fn MSL_size_prefixed_buffer_has_identifier(buf: &[u8]) -> bool {
  flatbuffers::buffer_has_identifier(buf, MSL_IDENTIFIER, true)
}

#[inline]
pub fn finish_MSL_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(
    fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
    root: flatbuffers::WIPOffset<MSL<'a>>) {
  fbb.finish(root, Some(MSL_IDENTIFIER));
}

#[inline]
pub fn finish_size_prefixed_MSL_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>, root: flatbuffers::WIPOffset<MSL<'a>>) {
  fbb.finish_size_prefixed(root, Some(MSL_IDENTIFIER));
}