public class WeaponFired extends Object implements IUasDatalinkValue
From ST:
Indication when a particular weapon is released.Note: the Weapon Stores (Item 140) replaces the Weapon Load (Item 60) and Weapon Fired (Item 61) for providing information about Weapons and their status.
The Weapon Fired metadata item has the same format as the first byte of the Weapon Load metadata item indicating station and substation location of a store. Byte 1 is composed of two nibbles with [nib1] being the most significant nibble with bit order [3210] where 3=msb.
When included in a KLV packet, correlate the Weapon Fired item with the mandatory timestamp to determine the release time of a weapon.
Constructor and Description |
---|
WeaponFired(byte[] bytes)
Create from encoded bytes.
|
WeaponFired(int stationNumber,
int substationNumber)
Create from value.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
int |
getStationNumber()
Get the store station number.
|
int |
getSubstationNumber()
Get the store substation number.
|
public WeaponFired(int stationNumber, int substationNumber)
stationNumber
- the station number, in the range 1..15.substationNumber
- the substation number, in the range 0..15public WeaponFired(byte[] bytes)
bytes
- The byte array of length 1public byte[] getBytes()
IUasDatalinkValue
getBytes
in interface IUasDatalinkValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public final String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
public int getStationNumber()
public int getSubstationNumber()
Copyright © 2022 West Ridge Systems. All rights reserved.