public class

DJIVirtualStickFlightControlData

extends Object
java.lang.Object
   ↳ dji.common.flightcontroller.DJIVirtualStickFlightControlData

Class Overview

Contains all the virtual stick control data needed to move the aircraft in all directions

Summary

Public Constructors
DJIVirtualStickFlightControlData(float pPitch, float pRoll, float pYaw, float pThrottle)
Constructor.
Public Methods
float getPitch()
Gets Velocity (m/s) or Angle (degrees) value for pitch.
float getRoll()
Gets Velocity (m/s) or Angle (degrees) value for roll.
float getVerticalThrottle()
Gets Velocity (m/s) or Alititude (m) value for verticalControl.
float getYaw()
Gets Angular Velocity (degrees/s) or Angle (degrees) value for yaw.
void setPitch(float pPitch)
Sets Velocity (m/s) or Angle (degrees) value for pitch.
void setRoll(float pRoll)
Sets Velocity (m/s) or Angle (degrees) value for roll.
void setVerticalThrottle(float pThrottle)
Sets Velocity (m/s) or Alititude (m) value for verticalControl.
void setYaw(float pYaw)
Sets Angular Velocity (degrees/s) or Angle (degrees) value for yaw.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DJIVirtualStickFlightControlData (float pPitch, float pRoll, float pYaw, float pThrottle)

Constructor.

Parameters
pPitch Pitch value.
pRoll Roll value.
pYaw Yaw value.
pThrottle Throttle value.

Public Methods

public float getPitch ()

Gets Velocity (m/s) or Angle (degrees) value for pitch. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.

public float getRoll ()

Gets Velocity (m/s) or Angle (degrees) value for roll. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.

public float getVerticalThrottle ()

Gets Velocity (m/s) or Alititude (m) value for verticalControl. Use DJIVirtualStickVerticalControlMode to set velocity or altitude mode.

public float getYaw ()

Gets Angular Velocity (degrees/s) or Angle (degrees) value for yaw. Use DJIVirtualStickYawControlMode to set angular velocity or angle mode.

public void setPitch (float pPitch)

Sets Velocity (m/s) or Angle (degrees) value for pitch. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.

Parameters
pPitch the value to be set.

public void setRoll (float pRoll)

Sets Velocity (m/s) or Angle (degrees) value for roll. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.

Parameters
pRoll the value to be set.

public void setVerticalThrottle (float pThrottle)

Sets Velocity (m/s) or Alititude (m) value for verticalControl. Use DJIVirtualStickVerticalControlMode to set velocity or altitude mode.

public void setYaw (float pYaw)

Sets Angular Velocity (degrees/s) or Angle (degrees) value for yaw. Use DJIVirtualStickYawControlMode to set angular velocity or angle mode.

Parameters
pYaw the value to be set.