virtualStick method Null safety
Update Virtual Stick flight controller data (via physical remote controller)
Control whether the virtual-stick mode is enabled
, and the pitch
, roll
, yaw
and verticalThrottle
of the Virtual Stick flight controller.
Available only when the drone is connected to the physical remote controller.
Implementation
static Future<void> virtualStick({
required bool enabled,
required double pitch,
required double roll,
required double yaw,
required double verticalThrottle,
}) async {
await _api?.virtualStick(
enabled,
pitch,
roll,
yaw,
verticalThrottle,
);
}