Table of Contents

Class MavlinkOffboard

Namespace
Pamoja.Mavlink
Assembly
Pamoja.Mavlink.dll

The setpoint constructors for offboard control.

public static class MavlinkOffboard
Inheritance
MavlinkOffboard
Inherited Members

Methods

Builds a global-frame position setpoint frame.

public static MavlinkFrame GlobalPosition(MavlinkHeader header, uint timeBootMs, byte coordinateFrame, byte targetSystem, byte targetComponent, int latInt, int lonInt, float alt)

Parameters

header MavlinkHeader

The addressing fields to stamp on the frame.

timeBootMs uint

The sender's boot timestamp, in milliseconds.

coordinateFrame byte

The MAV_FRAME of the setpoint.

targetSystem byte

The target system id.

targetComponent byte

The target component id.

latInt int

The latitude, in degrees times ten million.

lonInt int

The longitude, in degrees times ten million.

alt float

The altitude, in metres.

Returns

MavlinkFrame

The SET_POSITION_TARGET_GLOBAL_INT frame.

Builds a local-frame position setpoint frame.

public static MavlinkFrame LocalPosition(MavlinkHeader header, uint timeBootMs, byte coordinateFrame, byte targetSystem, byte targetComponent, float x, float y, float z)

Parameters

header MavlinkHeader

The addressing fields to stamp on the frame.

timeBootMs uint

The sender's boot timestamp, in milliseconds.

coordinateFrame byte

The MAV_FRAME of the setpoint.

targetSystem byte

The target system id.

targetComponent byte

The target component id.

x float

The position along x, in metres in the chosen frame.

y float

The position along y.

z float

The position along z.

Returns

MavlinkFrame

The SET_POSITION_TARGET_LOCAL_NED frame.

Builds a local-frame velocity setpoint frame.

public static MavlinkFrame LocalVelocity(MavlinkHeader header, uint timeBootMs, byte coordinateFrame, byte targetSystem, byte targetComponent, float vx, float vy, float vz)

Parameters

header MavlinkHeader

The addressing fields to stamp on the frame.

timeBootMs uint

The sender's boot timestamp, in milliseconds.

coordinateFrame byte

The MAV_FRAME of the setpoint.

targetSystem byte

The target system id.

targetComponent byte

The target component id.

vx float

The velocity along x, in metres per second in the chosen frame.

vy float

The velocity along y.

vz float

The velocity along z.

Returns

MavlinkFrame

The SET_POSITION_TARGET_LOCAL_NED frame.

Builds a setpoint type_mask from the fields to use.

public static ushort TypeMask(MavlinkTypeMask fields)

Parameters

fields MavlinkTypeMask

The fields the autopilot should act on; the rest are ignored.

Returns

ushort

The mask, as the type_mask field of a setpoint carries it.