| java.lang.Object | |
| ↳ | dji.common.flightcontroller.DJIVirtualStickFlightControlData |
Contains all the virtual stick control data needed to move the aircraft in all directions
| 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
| |||||||||||
Constructor.
| pPitch | Pitch value. |
|---|---|
| pRoll | Roll value. |
| pYaw | Yaw value. |
| pThrottle | Throttle value. |
Gets Velocity (m/s) or Angle (degrees) value for pitch. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.
Gets Velocity (m/s) or Angle (degrees) value for roll. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.
Gets Velocity (m/s) or Alititude (m) value for verticalControl. Use DJIVirtualStickVerticalControlMode to set velocity or altitude mode.
Gets Angular Velocity (degrees/s) or Angle (degrees) value for yaw. Use DJIVirtualStickYawControlMode to set angular velocity or angle mode.
Sets Velocity (m/s) or Angle (degrees) value for pitch. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.
| pPitch | the value to be set. |
|---|
Sets Velocity (m/s) or Angle (degrees) value for roll. Use DJIVirtualStickRollPitchControlMode to set velocity or angle mode.
| pRoll | the value to be set. |
|---|
Sets Velocity (m/s) or Alititude (m) value for verticalControl. Use DJIVirtualStickVerticalControlMode to set velocity or altitude mode.
Sets Angular Velocity (degrees/s) or Angle (degrees) value for yaw. Use DJIVirtualStickYawControlMode to set angular velocity or angle mode.
| pYaw | the value to be set. |
|---|