Table of Contents

Struct MavlinkFieldInfo

Namespace
Pamoja.Mavlink
Assembly
Pamoja.Mavlink.dll

One field of a message shape.

public readonly record struct MavlinkFieldInfo : IEquatable<MavlinkFieldInfo>
Implements
Inherited Members

Constructors

One field of a message shape.

public MavlinkFieldInfo(string Name, string TypeName, MavlinkFieldType FieldType, byte ArrayLen, bool Extension, int Offset)

Parameters

Name string

The field name as the dialect writes it.

TypeName string

The field's type name as the dialect writes it.

FieldType MavlinkFieldType

The field's type.

ArrayLen byte

The element count for an array field, or 0 for a scalar.

Extension bool

Whether this is a MAVLink 2 extension field.

Offset int

The field's byte offset within the payload.

Properties

The element count for an array field, or 0 for a scalar.

public byte ArrayLen { get; init; }

Property Value

byte

Whether this is a MAVLink 2 extension field.

public bool Extension { get; init; }

Property Value

bool

The field's type.

public MavlinkFieldType FieldType { get; init; }

Property Value

MavlinkFieldType

The field name as the dialect writes it.

public string Name { get; init; }

Property Value

string

The field's byte offset within the payload.

public int Offset { get; init; }

Property Value

int

The field's type name as the dialect writes it.

public string TypeName { get; init; }

Property Value

string