Struct MavlinkFieldInfo
One field of a message shape.
public readonly record struct MavlinkFieldInfo : IEquatable<MavlinkFieldInfo>
- Implements
- Inherited Members
Constructors
MavlinkFieldInfo(string, string, MavlinkFieldType, byte, bool, int)
One field of a message shape.
public MavlinkFieldInfo(string Name, string TypeName, MavlinkFieldType FieldType, byte ArrayLen, bool Extension, int Offset)
Parameters
NamestringThe field name as the dialect writes it.
TypeNamestringThe field's type name as the dialect writes it.
FieldTypeMavlinkFieldTypeThe field's type.
ArrayLenbyteThe element count for an array field, or
0for a scalar.ExtensionboolWhether this is a MAVLink 2 extension field.
OffsetintThe field's byte offset within the payload.
Properties
ArrayLen
The element count for an array field, or 0 for a scalar.
public byte ArrayLen { get; init; }
Property Value
Extension
Whether this is a MAVLink 2 extension field.
public bool Extension { get; init; }
Property Value
FieldType
The field's type.
public MavlinkFieldType FieldType { get; init; }
Property Value
Name
The field name as the dialect writes it.
public string Name { get; init; }
Property Value
Offset
The field's byte offset within the payload.
public int Offset { get; init; }
Property Value
TypeName
The field's type name as the dialect writes it.
public string TypeName { get; init; }