Class MavlinkOffboard
The setpoint constructors for offboard control.
public static class MavlinkOffboard
- Inheritance
-
MavlinkOffboard
- Inherited Members
Methods
GlobalPosition(MavlinkHeader, uint, byte, byte, byte, int, int, float)
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
headerMavlinkHeaderThe addressing fields to stamp on the frame.
timeBootMsuintThe sender's boot timestamp, in milliseconds.
coordinateFramebyteThe
MAV_FRAMEof the setpoint.targetSystembyteThe target system id.
targetComponentbyteThe target component id.
latIntintThe latitude, in degrees times ten million.
lonIntintThe longitude, in degrees times ten million.
altfloatThe altitude, in metres.
Returns
- MavlinkFrame
The
SET_POSITION_TARGET_GLOBAL_INTframe.
LocalPosition(MavlinkHeader, uint, byte, byte, byte, float, float, float)
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
headerMavlinkHeaderThe addressing fields to stamp on the frame.
timeBootMsuintThe sender's boot timestamp, in milliseconds.
coordinateFramebyteThe
MAV_FRAMEof the setpoint.targetSystembyteThe target system id.
targetComponentbyteThe target component id.
xfloatThe position along x, in metres in the chosen frame.
yfloatThe position along y.
zfloatThe position along z.
Returns
- MavlinkFrame
The
SET_POSITION_TARGET_LOCAL_NEDframe.
LocalVelocity(MavlinkHeader, uint, byte, byte, byte, float, float, float)
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
headerMavlinkHeaderThe addressing fields to stamp on the frame.
timeBootMsuintThe sender's boot timestamp, in milliseconds.
coordinateFramebyteThe
MAV_FRAMEof the setpoint.targetSystembyteThe target system id.
targetComponentbyteThe target component id.
vxfloatThe velocity along x, in metres per second in the chosen frame.
vyfloatThe velocity along y.
vzfloatThe velocity along z.
Returns
- MavlinkFrame
The
SET_POSITION_TARGET_LOCAL_NEDframe.
TypeMask(MavlinkTypeMask)
Builds a setpoint type_mask from the fields to use.
public static ushort TypeMask(MavlinkTypeMask fields)
Parameters
fieldsMavlinkTypeMaskThe fields the autopilot should act on; the rest are ignored.
Returns
- ushort
The mask, as the
type_maskfield of a setpoint carries it.